about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/Cargo.toml8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Cargo.toml b/src/Cargo.toml
index 023627fda99..85a6df3573a 100644
--- a/src/Cargo.toml
+++ b/src/Cargo.toml
@@ -18,6 +18,14 @@ members = [
   "tools/rls",
 ]
 
+# Curiously, compiletest will segfault if compiled with opt-level=3 on 64-bit
+# MSVC when running the compile-fail test suite when a should-fail test panics.
+# But hey if this is removed and it gets past the bots, sounds good to me.
+[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]