Skip to content

Commit c11d68b

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)