Skip to content

Commit f6f21a8

Browse files
committed
Review changes
1 parent 151986f commit f6f21a8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/bootstrap/src/core/build_steps/perf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Consider setting `rust.debuginfo-level = 1` in `config.toml`."#);
2727
let args = std::env::args().skip_while(|a| a != "--").skip(1);
2828

2929
let mut cmd = builder.tool_cmd(Tool::RustcPerfWrapper);
30-
cmd.env("PERF_RUSTC", rustc)
30+
cmd.env("RUSTC_REAL", rustc)
3131
.env("PERF_COLLECTOR", collector)
3232
.env("PERF_RESULT_DIR", profile_results_dir)
3333
.args(args);
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# rustc-perf wrapper
22
Utility tool for invoking [`rustc-perf`](https://github.com/rust-lang/rustc-perf) for benchmarking/profiling
3-
a stage1/2 compiler built by bootstrap using `x run perf`.
3+
a stage1/2 compiler built by bootstrap using `x perf -- <command>`.

src/tools/rustc-perf-wrapper/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct SharedOpts {
6868
#[derive(Debug, clap::Parser)]
6969
struct BuildContext {
7070
/// Compiler binary that will be benchmarked/profiled.
71-
#[clap(long, hide = true, env = "PERF_RUSTC")]
71+
#[clap(long, hide = true, env = "RUSTC_REAL")]
7272
compiler: PathBuf,
7373
/// rustc-perf collector binary that will be used for running benchmarks/profilers.
7474
#[clap(long, hide = true, env = "PERF_COLLECTOR")]

0 commit comments

Comments
 (0)