Skip to content

Commit 4f35166

Browse files
committed
bootstrap: Move RUSTC_BREAK_ON_ICE out of shim
This is always set, so let's just always set it elsewhere to reduce the need for our `rustc.rs` shim.
1 parent 557e69b commit 4f35166

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/bootstrap/bin/rustc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ fn main() {
9797
cmd.env("RUST_BACKTRACE", "1");
9898
}
9999

100-
cmd.env("RUSTC_BREAK_ON_ICE", "1");
101-
102100
if let Ok(debuginfo_level) = env::var("RUSTC_DEBUGINFO_LEVEL") {
103101
cmd.arg(format!("-Cdebuginfo={}", debuginfo_level));
104102
}

src/bootstrap/builder.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,8 @@ impl<'a> Builder<'a> {
917917
PathBuf::from("/path/to/nowhere/rustdoc/not/required")
918918
},
919919
)
920-
.env("RUSTC_ERROR_METADATA_DST", self.extended_error_dir());
920+
.env("RUSTC_ERROR_METADATA_DST", self.extended_error_dir())
921+
.env("RUSTC_BREAK_ON_ICE", "1");
921922

922923
if let Some(host_linker) = self.linker(compiler.host) {
923924
cargo.env("RUSTC_HOST_LINKER", host_linker);

0 commit comments

Comments
 (0)