File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1041,15 +1041,11 @@ impl<'a> Builder<'a> {
1041
1041
}
1042
1042
}
1043
1043
1044
- // FIXME: Don't use LLD with MSVC if we're compiling libtest, since it fails to link it.
1045
- // See https://github.com/rust-lang/rust/issues/68647.
1046
- let can_use_lld = mode != Mode :: Std ;
1047
-
1048
- if let Some ( host_linker) = self . linker ( compiler. host , can_use_lld) {
1044
+ if let Some ( host_linker) = self . linker ( compiler. host , true ) {
1049
1045
cargo. env ( "RUSTC_HOST_LINKER" , host_linker) ;
1050
1046
}
1051
1047
1052
- if let Some ( target_linker) = self . linker ( target, can_use_lld ) {
1048
+ if let Some ( target_linker) = self . linker ( target, true ) {
1053
1049
let target = crate :: envify ( & target. triple ) ;
1054
1050
cargo. env ( & format ! ( "CARGO_TARGET_{}_LINKER" , target) , target_linker) ;
1055
1051
}
You can’t perform that action at this time.
0 commit comments