diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-04-08 13:44:29 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-05-05 20:36:46 +0200 |
| commit | e24cbe2da07f1a713bd50a8f30792b145633795e (patch) | |
| tree | d59fede3658c2e64b9f9fd0497eabe5bdac1f8b0 /src/bootstrap/bin | |
| parent | c338bd539ea9ab1d33c0af8c6deed0cf4738b70c (diff) | |
| download | rust-e24cbe2da07f1a713bd50a8f30792b145633795e.tar.gz rust-e24cbe2da07f1a713bd50a8f30792b145633795e.zip | |
Misc tweaks
Diffstat (limited to 'src/bootstrap/bin')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 7 |
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. |
