File tree 2 files changed +0
-21
lines changed
2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,6 @@ fn main() {
134
134
cmd. arg ( format ! ( "-Clinker={}" , host_linker) ) ;
135
135
}
136
136
137
- // Override linker flavor if necessary.
138
- if let Ok ( host_linker_flavor) = env:: var ( "RUSTC_HOST_LINKER_FLAVOR" ) {
139
- cmd. arg ( format ! ( "-Clinker-flavor={}" , host_linker_flavor) ) ;
140
- }
141
-
142
137
if let Ok ( s) = env:: var ( "RUSTC_HOST_CRT_STATIC" ) {
143
138
if s == "true" {
144
139
cmd. arg ( "-C" ) . arg ( "target-feature=+crt-static" ) ;
Original file line number Diff line number Diff line change @@ -969,27 +969,11 @@ impl<'a> Builder<'a> {
969
969
// See https://github.com/rust-lang/rust/issues/68647.
970
970
let can_use_lld = mode != Mode :: Std ;
971
971
972
- // FIXME: The beta compiler doesn't pick the `lld-link` flavor for `*-pc-windows-msvc`
973
- // Remove `RUSTC_HOST_LINKER_FLAVOR` when this is fixed
974
- let lld_linker_flavor = |linker : & Path , target : Interned < String > | {
975
- compiler. stage == 0
976
- && linker. file_name ( ) == Some ( OsStr :: new ( "rust-lld" ) )
977
- && target. contains ( "pc-windows-msvc" )
978
- } ;
979
-
980
972
if let Some ( host_linker) = self . linker ( compiler. host , can_use_lld) {
981
- if lld_linker_flavor ( host_linker, compiler. host ) {
982
- cargo. env ( "RUSTC_HOST_LINKER_FLAVOR" , "lld-link" ) ;
983
- }
984
-
985
973
cargo. env ( "RUSTC_HOST_LINKER" , host_linker) ;
986
974
}
987
975
988
976
if let Some ( target_linker) = self . linker ( target, can_use_lld) {
989
- if lld_linker_flavor ( target_linker, target) {
990
- rustflags. arg ( "-Clinker-flavor=lld-link" ) ;
991
- }
992
-
993
977
let target = crate :: envify ( & target) ;
994
978
cargo. env ( & format ! ( "CARGO_TARGET_{}_LINKER" , target) , target_linker) ;
995
979
}
You can’t perform that action at this time.
0 commit comments