Skip to content

Commit 29afe2f

Browse files
committed
Only use the flag for rustc and std
1 parent 70e90f9 commit 29afe2f

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
@@ -1043,7 +1043,9 @@ impl Builder<'_> {
10431043
// Enable usage of unstable features
10441044
cargo.env("RUSTC_BOOTSTRAP", "1");
10451045

1046-
cargo.arg("-Zno-embed-metadata");
1046+
if matches!(mode, Mode::Rustc | Mode::Std) {
1047+
cargo.arg("-Zno-embed-metadata");
1048+
}
10471049

10481050
if self.config.dump_bootstrap_shims {
10491051
prepare_behaviour_dump_dir(self.build);

0 commit comments

Comments
 (0)