File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1057,6 +1057,10 @@ pub fn rustc_cargo(
1057
1057
// killed, rather than having an error bubble up and cause a panic.
1058
1058
cargo. rustflag ( "-Zon-broken-pipe=kill" ) ;
1059
1059
1060
+ if builder. config . llvm_enzyme {
1061
+ cargo. rustflag ( "-l" ) . rustflag ( "Enzyme-19" ) ;
1062
+ }
1063
+
1060
1064
// We currently don't support cross-crate LTO in stage0. This also isn't hugely necessary
1061
1065
// and may just be a time sink.
1062
1066
if compiler. stage != 0 {
Original file line number Diff line number Diff line change @@ -1592,12 +1592,6 @@ impl<'a> Builder<'a> {
1592
1592
rustflags. arg ( sysroot_str) ;
1593
1593
}
1594
1594
1595
- // https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20link.20new.20library.20into.20stage1.2Frustc
1596
- if self . config . llvm_enzyme {
1597
- rustflags. arg ( "-l" ) ;
1598
- rustflags. arg ( "Enzyme-19" ) ;
1599
- }
1600
-
1601
1595
let use_new_symbol_mangling = match self . config . rust_new_symbol_mangling {
1602
1596
Some ( setting) => {
1603
1597
// If an explicit setting is given, use that
You can’t perform that action at this time.
0 commit comments