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
This commit is contained in:
bors 2018-07-14 18:28:50 +00:00
commit cbcd81a4a9
1 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,13 @@ members = [
"tools/rls/test_data/workspace_symbol",
]
# Curiously, LLVM 7.0 will segfault if compiled with opt-level=3
# See issue https://github.com/rust-lang/rust/issues/52378
[profile.release]
opt-level = 2
[profile.bench]
opt-level = 2
# These options are controlled from our rustc wrapper script, so turn them off
# here and have them controlled elsewhere.
[profile.dev]