From d332fc38f3f4f7910f505aff45f4742fd565dcca Mon Sep 17 00:00:00 2001 From: kennytm Date: Sat, 14 Jul 2018 23:04:33 +0800 Subject: [PATCH] Revert "Auto merge of #52212 - kennytm:o3-again, r=alexcrichton" This reverts commit 1731f0af22af16c461b2b7abe58988b8549b2de6, reversing changes made to 0a8275f8b677304458c6161e26436dfe67ab766b. --- src/Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Cargo.toml b/src/Cargo.toml index be4db9d3e2aa0..5ae26fea2d13b 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]