about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-11-13 11:46:55 +0000
committerbors <bors@rust-lang.org>2017-11-13 11:46:55 +0000
commitb7ccb0a5a7ee5bf51dbb63490c0d7166cfb993e2 (patch)
tree60993f81e5c4a7567ae16747951dd74f5915110f /src
parente312c8a8c3ecd7fead1e8a6cc591360dc73c9e79 (diff)
parent7625c79f2a8947388012d0636cac914c47771eff (diff)
downloadrust-b7ccb0a5a7ee5bf51dbb63490c0d7166cfb993e2.tar.gz
rust-b7ccb0a5a7ee5bf51dbb63490c0d7166cfb993e2.zip
Auto merge of #45810 - SimonSapin:ac-dc, r=aturon
Disable LLVM assertions on Nightly, enable them in "alt" builds.

Per IRC discussion https://mozilla.logbot.info/rust-infra/20171106#c13812170-c13812204

Background: https://internals.rust-lang.org/t/disabling-llvm-assertions-in-nightly-builds/5388/14
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/config.rs2
-rwxr-xr-xsrc/ci/run.sh2
-rw-r--r--src/test/run-make/sanitizer-memory/Makefile6
3 files changed, 6 insertions, 4 deletions
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs
index 33c7141e704..35e62f17f2e 100644
--- a/src/bootstrap/config.rs
+++ b/src/bootstrap/config.rs
@@ -528,7 +528,7 @@ impl Config {
         // Now that we've reached the end of our configuration, infer the
         // default values for all options that we haven't otherwise stored yet.
 
-        let default = config.channel == "nightly";
+        let default = false;
         config.llvm_assertions = llvm_assertions.unwrap_or(default);
 
         let default = match &config.channel[..] {
diff --git a/src/ci/run.sh b/src/ci/run.sh
index b4fa033c4a6..deea4fec4dc 100755
--- a/src/ci/run.sh
+++ b/src/ci/run.sh
@@ -49,7 +49,7 @@ if [ "$DEPLOY$DEPLOY_ALT" != "" ]; then
   if [ "$NO_LLVM_ASSERTIONS" = "1" ]; then
     RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-assertions"
   elif [ "$DEPLOY_ALT" != "" ]; then
-    RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-assertions"
+    RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-assertions"
   fi
 else
   # We almost always want debug assertions enabled, but sometimes this takes too
diff --git a/src/test/run-make/sanitizer-memory/Makefile b/src/test/run-make/sanitizer-memory/Makefile
index 7502ef0e7a7..f3a896cd4ab 100644
--- a/src/test/run-make/sanitizer-memory/Makefile
+++ b/src/test/run-make/sanitizer-memory/Makefile
@@ -3,8 +3,10 @@
 all:
 ifeq ($(TARGET),x86_64-unknown-linux-gnu)
 ifdef SANITIZER_SUPPORT
-	$(RUSTC) -g -Z sanitizer=memory -Z print-link-args uninit.rs | grep -q librustc_msan
-	$(TMPDIR)/uninit 2>&1 | grep -q use-of-uninitialized-value
+	$(RUSTC) -g -Z sanitizer=memory -Z print-link-args uninit.rs | tee $(TMPDIR)/out
+	grep -q librustc_msan $(TMPDIR)/out
+	$(TMPDIR)/uninit 2>&1 | tee $(TMPDIR)/out
+	grep -q use-of-uninitialized-value $(TMPDIR)/out
 endif
 endif