Skip to content

Commit 6a95136

Browse files
Fix rustc bootstrap compilation
1 parent 7155ede commit 6a95136

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

collector/src/bootstrap-rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn run() -> i32 {
66
let server = Client::new(num_cpus::get()).expect("made jobserver");
77

88
let mut cmd = Command::new(env::var_os("RUSTC_PERF_REAL_RUSTC").unwrap());
9-
cmd.args(env::args_os());
9+
cmd.args(env::args_os().skip(1));
1010

1111
// We want the bootstrap rustc to have access to full parallelism, even
1212
// though the parent cargo is permitted to spawn at most one rustc (-j1).

collector/src/execute/rustc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ fn record(
8888
.context("x.py script canonicalize")?,
8989
)
9090
.current_dir(&checkout)
91+
.env("RUSTC_PERF_REAL_RUSTC", &compiler.rustc)
9192
.arg("build")
9293
.arg("--stage")
9394
.arg("0")

0 commit comments

Comments
 (0)