File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1067,10 +1067,16 @@ impl Step for Compiletest {
1067
1067
1068
1068
let mut hostflags = flags. clone ( ) ;
1069
1069
hostflags. push ( format ! ( "-Lnative={}" , builder. test_helpers_out( compiler. host) . display( ) ) ) ;
1070
+ if builder. config . use_lld && !compiler. host . triple . contains ( "msvc" ) {
1071
+ hostflags. push ( "-Clink-args=-fuse-ld=lld" . to_string ( ) ) ;
1072
+ }
1070
1073
cmd. arg ( "--host-rustcflags" ) . arg ( hostflags. join ( " " ) ) ;
1071
1074
1072
1075
let mut targetflags = flags;
1073
1076
targetflags. push ( format ! ( "-Lnative={}" , builder. test_helpers_out( target) . display( ) ) ) ;
1077
+ if builder. config . use_lld && !target. contains ( "msvc" ) {
1078
+ targetflags. push ( "-Clink-args=-fuse-ld=lld" . to_string ( ) ) ;
1079
+ }
1074
1080
cmd. arg ( "--target-rustcflags" ) . arg ( targetflags. join ( " " ) ) ;
1075
1081
1076
1082
cmd. arg ( "--docck-python" ) . arg ( builder. python ( ) ) ;
You can’t perform that action at this time.
0 commit comments