Skip to content

Commit 5871afb

Browse files
committed
enables -Zexport-llvm-symbols only when stage1/2
1 parent bc6658b commit 5871afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ pub fn rustc_cargo(
12611261
cargo.rustflag("-Zdefault-visibility=protected");
12621262
}
12631263

1264-
if builder.config.llvm_enzyme && target.contains("apple") {
1264+
if builder.config.llvm_enzyme && target.contains("apple") && build_compiler.stage != 0 {
12651265
cargo.rustflag("-Zexport-llvm-symbols");
12661266
}
12671267

0 commit comments

Comments
 (0)