summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-05-29 14:44:42 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-05-29 14:44:42 +0200
commit01e8616be924d380659281c59c4b499917323c23 (patch)
tree800a726162c6ff65642ae04260bcc8c9ad6e5090 /src
parentAuto merge of #51142 - nickbabcock:doc-inspect, r=frewsxcv (diff)
downloadgrust-01e8616be924d380659281c59c4b499917323c23.tar.gz
grust-01e8616be924d380659281c59c4b499917323c23.tar.bz2
grust-01e8616be924d380659281c59c4b499917323c23.tar.xz
Revert "Set opt-level to 3"
This reverts commit aad9840ad49c56830384e87bc8bd87fd0199dc44. Level 3 (possibly indirectly, the underlying bug might be in XCode’s linker) causes unit tests to sefault when compiled with some versions of XCode: https://github.com/rust-lang/rust/issues/50867 It also appears to cause some segfaults on Windows: https://github.com/rust-lang/rust/pull/50329#issuecomment-386853473 … and regressions in some rustc performance benchmarks: https://github.com/rust-lang/rust/pull/50329#issuecomment-388084894
Diffstat (limited to 'src')
-rw-r--r--src/Cargo.toml8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Cargo.toml b/src/Cargo.toml
index 7504b43e20..15d2cbf80b 100644
--- a/src/Cargo.toml
+++ b/src/Cargo.toml
@@ -40,6 +40,14 @@ members = [
40 "tools/rls/test_data/workspace_symbol", 40 "tools/rls/test_data/workspace_symbol",
41] 41]
42 42
43# Curiously, compiletest will segfault if compiled with opt-level=3 on 64-bit
44# MSVC when running the compile-fail test suite when a should-fail test panics.
45# But hey if this is removed and it gets past the bots, sounds good to me.
46[profile.release]
47opt-level = 2
48[profile.bench]
49opt-level = 2
50
43# These options are controlled from our rustc wrapper script, so turn them off 51# These options are controlled from our rustc wrapper script, so turn them off
44# here and have them controlled elsewhere. 52# here and have them controlled elsewhere.
45[profile.dev] 53[profile.dev]