Skip to content

Commit

Permalink
rustbuild: only pass -Zconfig-profile if we're not self bootstraping
Browse files Browse the repository at this point in the history
This option is now stable thus our cargo will reject it

Fixes rust-lang#69975

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
  • Loading branch information
Keruspe committed Mar 23, 2020
1 parent 1eaaee9 commit cd935cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,11 @@ impl<'a> Builder<'a> {
self.clear_if_dirty(&my_out, &rustdoc);
}

cargo.env("CARGO_TARGET_DIR", &out_dir).arg(cmd).arg("-Zconfig-profile");
cargo.env("CARGO_TARGET_DIR", &out_dir).arg(cmd);

if !self.local_rebuild {
cargo.arg("-Zconfig-profile");
}

let profile_var = |name: &str| {
let profile = if self.config.rust_optimize { "RELEASE" } else { "DEV" };
Expand Down

0 comments on commit cd935cb

Please sign in to comment.