about summary refs log tree commit diff
path: root/src/bootstrap/bin
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-04-08 13:44:29 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-05-05 20:36:46 +0200
commite24cbe2da07f1a713bd50a8f30792b145633795e (patch)
treed59fede3658c2e64b9f9fd0497eabe5bdac1f8b0 /src/bootstrap/bin
parentc338bd539ea9ab1d33c0af8c6deed0cf4738b70c (diff)
downloadrust-e24cbe2da07f1a713bd50a8f30792b145633795e.tar.gz
rust-e24cbe2da07f1a713bd50a8f30792b145633795e.zip
Misc tweaks
Diffstat (limited to 'src/bootstrap/bin')
-rw-r--r--src/bootstrap/bin/rustc.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs
index b6ae824c376..3f97accaa4d 100644
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -107,6 +107,13 @@ fn main() {
              env::join_paths(&dylib_path).unwrap());
     let mut maybe_crate = None;
 
+    // Print backtrace in case of ICE
+    if env::var("RUSTC_BACKTRACE_ON_ICE").is_ok() && env::var("RUST_BACKTRACE").is_err() {
+        cmd.env("RUST_BACKTRACE", "1");
+    }
+
+    cmd.env("RUSTC_BREAK_ON_ICE", "1");
+
     if let Some(target) = target {
         // The stage0 compiler has a special sysroot distinct from what we
         // actually downloaded, so we just always pass the `--sysroot` option.