Skip to content

Commit cbcd81a

Browse files
committed
Auto merge of #52379 - kennytm:revert-o3, r=rkruppe
Revert #52212 (revert set opt-level = 3) Setting -O3 causes LLVM to spuriously segfault at least on Linux. This PR reverts to -O2. cc #52378
2 parents 0db03e6 + d332fc3 commit cbcd81a

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, LLVM 7.0 will segfault if compiled with opt-level=3
44+
# See issue https://github.com/rust-lang/rust/issues/52378
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)