Skip to content

Commit 01e8616

Browse files
committed
Revert "Set opt-level to 3"
This reverts commit aad9840. Level 3 (possibly indirectly, the underlying bug might be in XCode’s linker) causes unit tests to sefault when compiled with some versions of XCode: #50867 It also appears to cause some segfaults on Windows: #50329 (comment) … and regressions in some rustc performance benchmarks: #50329 (comment)
1 parent 4f6d9bf commit 01e8616

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ members = [
4040
"tools/rls/test_data/workspace_symbol",
4141
]
4242

43+
# Curiously, compiletest will segfault if compiled with opt-level=3 on 64-bit
44+
# MSVC when running the compile-fail test suite when a should-fail test panics.
45+
# But hey if this is removed and it gets past the bots, sounds good to me.
46+
[profile.release]
47+
opt-level = 2
48+
[profile.bench]
49+
opt-level = 2
50+
4351
# These options are controlled from our rustc wrapper script, so turn them off
4452
# here and have them controlled elsewhere.
4553
[profile.dev]

0 commit comments

Comments
 (0)