@@ -1741,7 +1741,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1741
1741
builder. std ( compiler, target) ;
1742
1742
}
1743
1743
1744
- builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
1744
+ builder. ensure ( RemoteCopyLibs { build_compiler : compiler, target } ) ;
1745
1745
1746
1746
// compiletest currently has... a lot of arguments, so let's just pass all
1747
1747
// of them!
@@ -2821,7 +2821,7 @@ impl Step for Crate {
2821
2821
// Also prepare a sysroot for the target.
2822
2822
if !builder. config . is_host_target ( target) {
2823
2823
builder. ensure ( compile:: Std :: new ( compiler, target) . force_recompile ( true ) ) ;
2824
- builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
2824
+ builder. ensure ( RemoteCopyLibs { build_compiler : compiler, target } ) ;
2825
2825
}
2826
2826
2827
2827
// Build `cargo test` command
@@ -3029,7 +3029,7 @@ impl Step for CrateRustdocJsonTypes {
3029
3029
/// the build target (us) and the server is built for the target.
3030
3030
#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
3031
3031
pub struct RemoteCopyLibs {
3032
- compiler : Compiler ,
3032
+ build_compiler : Compiler ,
3033
3033
target : TargetSelection ,
3034
3034
}
3035
3035
@@ -3041,18 +3041,17 @@ impl Step for RemoteCopyLibs {
3041
3041
}
3042
3042
3043
3043
fn run ( self , builder : & Builder < ' _ > ) {
3044
- let compiler = self . compiler ;
3044
+ let build_compiler = self . build_compiler ;
3045
3045
let target = self . target ;
3046
3046
if !builder. remote_tested ( target) {
3047
3047
return ;
3048
3048
}
3049
3049
3050
- builder. std ( compiler , target) ;
3050
+ builder. std ( build_compiler , target) ;
3051
3051
3052
3052
builder. info ( & format ! ( "REMOTE copy libs to emulator ({target})" ) ) ;
3053
3053
3054
- let remote_test_server =
3055
- builder. ensure ( tool:: RemoteTestServer { build_compiler : compiler, target } ) ;
3054
+ let remote_test_server = builder. ensure ( tool:: RemoteTestServer { build_compiler, target } ) ;
3056
3055
3057
3056
// Spawn the emulator and wait for it to come online
3058
3057
let tool = builder. tool_exe ( Tool :: RemoteTestClient ) ;
@@ -3067,7 +3066,7 @@ impl Step for RemoteCopyLibs {
3067
3066
cmd. run ( builder) ;
3068
3067
3069
3068
// Push all our dylibs to the emulator
3070
- for f in t ! ( builder. sysroot_target_libdir( compiler , target) . read_dir( ) ) {
3069
+ for f in t ! ( builder. sysroot_target_libdir( build_compiler , target) . read_dir( ) ) {
3071
3070
let f = t ! ( f) ;
3072
3071
if helpers:: is_dylib ( & f. path ( ) ) {
3073
3072
command ( & tool) . arg ( "push" ) . arg ( f. path ( ) ) . run ( builder) ;
@@ -3108,6 +3107,9 @@ impl Step for Distcheck {
3108
3107
builder. ensure ( dist:: PlainSourceTarball ) ;
3109
3108
builder. ensure ( dist:: Src ) ;
3110
3109
3110
+ // FIXME: unpack the source tarballs into a directory outside the source checkout, to
3111
+ // ensure that it cannot access any local state
3112
+ // Also ensure that it doesn't use download-ci-llvm
3111
3113
command ( "tar" )
3112
3114
. arg ( "-xf" )
3113
3115
. arg ( builder. ensure ( dist:: PlainSourceTarball ) . tarball ( ) )
@@ -3689,8 +3691,10 @@ impl Step for TestFloatParse {
3689
3691
}
3690
3692
3691
3693
fn make_run ( run : RunConfig < ' _ > ) {
3692
- run. builder
3693
- . ensure ( Self { build_compiler : get_compiler_to_test ( run. builder ) , target : run. target } ) ;
3694
+ run. builder . ensure ( Self {
3695
+ build_compiler : get_compiler_to_test ( run. builder , run. target ) ,
3696
+ target : run. target ,
3697
+ } ) ;
3694
3698
}
3695
3699
3696
3700
fn run ( self , builder : & Builder < ' _ > ) {
0 commit comments