Skip to content

Commit b143030

Browse files
committed
Only use the flag for rustc and std
1 parent c9271a9 commit b143030

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/bootstrap/src/core/build_steps/compile.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,7 @@ impl Step for Std {
290290
);
291291

292292
let stamp = build_stamp::libstd_stamp(builder, build_compiler, target);
293-
run_cargo(
294-
builder,
295-
cargo,
296-
vec![],
297-
&stamp,
298-
target_deps,
299-
false,
300-
);
293+
run_cargo(builder, cargo, vec![], &stamp, target_deps, false);
301294

302295
builder.ensure(StdLink::from_std(
303296
self,

src/bootstrap/src/core/builder/cargo.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,9 @@ impl Builder<'_> {
10741074
// Enable usage of unstable features
10751075
cargo.env("RUSTC_BOOTSTRAP", "1");
10761076

1077-
cargo.arg("-Zno-embed-metadata");
1077+
if matches!(mode, Mode::Rustc | Mode::Std) {
1078+
cargo.arg("-Zno-embed-metadata");
1079+
}
10781080

10791081
if self.config.dump_bootstrap_shims {
10801082
prepare_behaviour_dump_dir(self.build);

0 commit comments

Comments
 (0)