Skip to content

Commit

Permalink
Auto merge of #52379 - kennytm:revert-o3, r=rkruppe
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Jul 14, 2018
2 parents 0db03e6 + d332fc3 commit cbcd81a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit cbcd81a

Please sign in to comment.