File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -978,6 +978,8 @@ impl Step for Compiletest {
978
978
979
979
// HACK(eddyb) ensure that `libproc_macro` is available on the host.
980
980
builder. ensure ( compile:: Test { compiler, target : compiler. host } ) ;
981
+ // Also provide `rust_test_helpers` for the host.
982
+ builder. ensure ( native:: TestHelpers { target : compiler. host } ) ;
981
983
982
984
builder. ensure ( native:: TestHelpers { target } ) ;
983
985
builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
@@ -1046,7 +1048,11 @@ impl Step for Compiletest {
1046
1048
cmd. arg ( "--linker" ) . arg ( linker) ;
1047
1049
}
1048
1050
1049
- let hostflags = flags. clone ( ) ;
1051
+ let mut hostflags = flags. clone ( ) ;
1052
+ hostflags. push ( format ! (
1053
+ "-Lnative={}" ,
1054
+ builder. test_helpers_out( compiler. host) . display( )
1055
+ ) ) ;
1050
1056
cmd. arg ( "--host-rustcflags" ) . arg ( hostflags. join ( " " ) ) ;
1051
1057
1052
1058
let mut targetflags = flags;
You can’t perform that action at this time.
0 commit comments