diff options
| author | bors <bors@rust-lang.org> | 2018-07-14 18:28:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-14 18:28:50 +0000 |
| commit | cbcd81a4a9312146942f8781376cabc109bfbcf0 (patch) | |
| tree | 2d269955921878d40b2f900eb8d6f09693330564 | |
| parent | 0db03e635a5e38ebc7635637b870b8fbcc8a7e46 (diff) | |
| parent | d332fc38f3f4f7910f505aff45f4742fd565dcca (diff) | |
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
| -rw-r--r-- | src/Cargo.toml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Cargo.toml b/src/Cargo.toml index be4db9d3e2a..5ae26fea2d1 100644 --- a/src/Cargo.toml +++ b/src/Cargo.toml @@ -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] |
