Skip to content

Commit 524ad9b

Browse files
committed
Auto merge of #51165 - SimonSapin:opt2, r=alexcrichton
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)
2 parents 59c0f59 + 5067d2f commit 524ad9b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Cargo.toml

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

43+
# Curiously, libtest will segfault if compiled with opt-level=3
44+
# with some versions of XCode: https://github.com/rust-lang/rust/issues/50867
45+
[profile.release]
46+
opt-level = 2
47+
[profile.bench]
48+
opt-level = 2
49+
4350
# These options are controlled from our rustc wrapper script, so turn them off
4451
# here and have them controlled elsewhere.
4552
[profile.dev]

0 commit comments

Comments
 (0)