We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1eaaee9 + cd935cb commit 4c587bbCopy full SHA for 4c587bb
src/bootstrap/builder.rs
@@ -725,7 +725,11 @@ impl<'a> Builder<'a> {
725
self.clear_if_dirty(&my_out, &rustdoc);
726
}
727
728
- cargo.env("CARGO_TARGET_DIR", &out_dir).arg(cmd).arg("-Zconfig-profile");
+ cargo.env("CARGO_TARGET_DIR", &out_dir).arg(cmd);
729
+
730
+ if !self.local_rebuild {
731
+ cargo.arg("-Zconfig-profile");
732
+ }
733
734
let profile_var = |name: &str| {
735
let profile = if self.config.rust_optimize { "RELEASE" } else { "DEV" };
0 commit comments