@@ -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!
@@ -2844,7 +2844,7 @@ impl Step for Crate {
28442844 // Also prepare a sysroot for the target.
28452845 if !builder. config . is_host_target ( target) {
28462846 builder. ensure ( compile:: Std :: new ( compiler, target) . force_recompile ( true ) ) ;
2847- builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
2847+ builder. ensure ( RemoteCopyLibs { build_compiler : compiler, target } ) ;
28482848 }
28492849
28502850 // Build `cargo test` command
@@ -3052,7 +3052,7 @@ impl Step for CrateRustdocJsonTypes {
30523052/// the build target (us) and the server is built for the target.
30533053#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
30543054pub struct RemoteCopyLibs {
3055- compiler : Compiler ,
3055+ build_compiler : Compiler ,
30563056 target : TargetSelection ,
30573057}
30583058
@@ -3064,18 +3064,17 @@ impl Step for RemoteCopyLibs {
30643064 }
30653065
30663066 fn run ( self , builder : & Builder < ' _ > ) {
3067- let compiler = self . compiler ;
3067+ let build_compiler = self . build_compiler ;
30683068 let target = self . target ;
30693069 if !builder. remote_tested ( target) {
30703070 return ;
30713071 }
30723072
3073- builder. std ( compiler , target) ;
3073+ builder. std ( build_compiler , target) ;
30743074
30753075 builder. info ( & format ! ( "REMOTE copy libs to emulator ({target})" ) ) ;
30763076
3077- let remote_test_server =
3078- builder. ensure ( tool:: RemoteTestServer { build_compiler : compiler, target } ) ;
3077+ let remote_test_server = builder. ensure ( tool:: RemoteTestServer { build_compiler, target } ) ;
30793078
30803079 // Spawn the emulator and wait for it to come online
30813080 let tool = builder. tool_exe ( Tool :: RemoteTestClient ) ;
@@ -3090,7 +3089,7 @@ impl Step for RemoteCopyLibs {
30903089 cmd. run ( builder) ;
30913090
30923091 // Push all our dylibs to the emulator
3093- for f in t ! ( builder. sysroot_target_libdir( compiler , target) . read_dir( ) ) {
3092+ for f in t ! ( builder. sysroot_target_libdir( build_compiler , target) . read_dir( ) ) {
30943093 let f = t ! ( f) ;
30953094 if helpers:: is_dylib ( & f. path ( ) ) {
30963095 command ( & tool) . arg ( "push" ) . arg ( f. path ( ) ) . run ( builder) ;
@@ -3136,6 +3135,9 @@ impl Step for Distcheck {
31363135 . map ( |args| args. split ( " " ) . map ( |s| s. to_string ( ) ) . collect :: < Vec < String > > ( ) )
31373136 . unwrap_or_default ( ) ;
31383137
3138+ // FIXME: unpack the source tarballs into a directory outside the source checkout, to
3139+ // ensure that it cannot access any local state
3140+ // Also ensure that it doesn't use download-ci-llvm
31393141 command ( "tar" )
31403142 . arg ( "-xf" )
31413143 . arg ( plain_src_tarball. tarball ( ) )
@@ -3722,8 +3724,10 @@ impl Step for TestFloatParse {
37223724 }
37233725
37243726 fn make_run ( run : RunConfig < ' _ > ) {
3725- run. builder
3726- . ensure ( Self { build_compiler : get_compiler_to_test ( run. builder ) , target : run. target } ) ;
3727+ run. builder . ensure ( Self {
3728+ build_compiler : get_compiler_to_test ( run. builder , run. target ) ,
3729+ target : run. target ,
3730+ } ) ;
37273731 }
37283732
37293733 fn run ( self , builder : & Builder < ' _ > ) {
0 commit comments