@@ -1741,7 +1741,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
17411741 builder. std ( compiler, target) ;
17421742 }
17431743
1744- builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
1744+ builder. ensure ( RemoteCopyLibs { build_compiler : compiler, target } ) ;
17451745
17461746 // compiletest currently has... a lot of arguments, so let's just pass all
17471747 // of them!
@@ -2842,7 +2842,7 @@ impl Step for Crate {
28422842 // Also prepare a sysroot for the target.
28432843 if !builder. config . is_host_target ( target) {
28442844 builder. ensure ( compile:: Std :: new ( compiler, target) . force_recompile ( true ) ) ;
2845- builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
2845+ builder. ensure ( RemoteCopyLibs { build_compiler : compiler, target } ) ;
28462846 }
28472847
28482848 // Build `cargo test` command
@@ -3050,7 +3050,7 @@ impl Step for CrateRustdocJsonTypes {
30503050/// the build target (us) and the server is built for the target.
30513051#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
30523052pub struct RemoteCopyLibs {
3053- compiler : Compiler ,
3053+ build_compiler : Compiler ,
30543054 target : TargetSelection ,
30553055}
30563056
@@ -3062,18 +3062,17 @@ impl Step for RemoteCopyLibs {
30623062 }
30633063
30643064 fn run ( self , builder : & Builder < ' _ > ) {
3065- let compiler = self . compiler ;
3065+ let build_compiler = self . build_compiler ;
30663066 let target = self . target ;
30673067 if !builder. remote_tested ( target) {
30683068 return ;
30693069 }
30703070
3071- builder. std ( compiler , target) ;
3071+ builder. std ( build_compiler , target) ;
30723072
30733073 builder. info ( & format ! ( "REMOTE copy libs to emulator ({target})" ) ) ;
30743074
3075- let remote_test_server =
3076- builder. ensure ( tool:: RemoteTestServer { build_compiler : compiler, target } ) ;
3075+ let remote_test_server = builder. ensure ( tool:: RemoteTestServer { build_compiler, target } ) ;
30773076
30783077 // Spawn the emulator and wait for it to come online
30793078 let tool = builder. tool_exe ( Tool :: RemoteTestClient ) ;
@@ -3088,7 +3087,7 @@ impl Step for RemoteCopyLibs {
30883087 cmd. run ( builder) ;
30893088
30903089 // Push all our dylibs to the emulator
3091- for f in t ! ( builder. sysroot_target_libdir( compiler , target) . read_dir( ) ) {
3090+ for f in t ! ( builder. sysroot_target_libdir( build_compiler , target) . read_dir( ) ) {
30923091 let f = t ! ( f) ;
30933092 if helpers:: is_dylib ( & f. path ( ) ) {
30943093 command ( & tool) . arg ( "push" ) . arg ( f. path ( ) ) . run ( builder) ;
@@ -3134,6 +3133,9 @@ impl Step for Distcheck {
31343133 . map ( |args| args. split ( " " ) . map ( |s| s. to_string ( ) ) . collect :: < Vec < String > > ( ) )
31353134 . unwrap_or_default ( ) ;
31363135
3136+ // FIXME: unpack the source tarballs into a directory outside the source checkout, to
3137+ // ensure that it cannot access any local state
3138+ // Also ensure that it doesn't use download-ci-llvm
31373139 command ( "tar" )
31383140 . arg ( "-xf" )
31393141 . arg ( plain_src_tarball. tarball ( ) )
@@ -3720,8 +3722,10 @@ impl Step for TestFloatParse {
37203722 }
37213723
37223724 fn make_run ( run : RunConfig < ' _ > ) {
3723- run. builder
3724- . ensure ( Self { build_compiler : get_compiler_to_test ( run. builder ) , target : run. target } ) ;
3725+ run. builder . ensure ( Self {
3726+ build_compiler : get_compiler_to_test ( run. builder , run. target ) ,
3727+ target : run. target ,
3728+ } ) ;
37253729 }
37263730
37273731 fn run ( self , builder : & Builder < ' _ > ) {
0 commit comments