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