@@ -3543,19 +3543,6 @@ impl<'test> TestCx<'test> {
3543
3543
support_lib_path. push ( format ! ( "{}-tools-bin" , stage) ) ;
3544
3544
support_lib_path. push ( "librun_make_support.rlib" ) ;
3545
3545
3546
- let mut stage_std_path = PathBuf :: new ( ) ;
3547
- stage_std_path. push ( & build_root) ;
3548
- stage_std_path. push ( & stage) ;
3549
- stage_std_path. push ( "lib" ) ;
3550
-
3551
- // Then, we need to build the recipe `rmake.rs` and link in the support library.
3552
- // FIXME(jieyouxu): use `std::env::consts::EXE_EXTENSION`.
3553
- let recipe_bin = base_dir. join ( if self . config . target . contains ( "windows" ) {
3554
- "rmake.exe"
3555
- } else {
3556
- "rmake"
3557
- } ) ;
3558
-
3559
3546
// FIXME(jieyouxu): explain what the hecc we are doing here.
3560
3547
let mut support_lib_deps = PathBuf :: new ( ) ;
3561
3548
support_lib_deps. push ( & build_root) ;
@@ -3583,6 +3570,15 @@ impl<'test> TestCx<'test> {
3583
3570
host_dylib_env_paths. extend ( orig_dylib_env_paths. iter ( ) . cloned ( ) ) ;
3584
3571
let host_dylib_env_paths = env:: join_paths ( host_dylib_env_paths) . unwrap ( ) ;
3585
3572
3573
+ // Finally, we need to run the recipe binary to build and run the actual tests.
3574
+ // FIXME(jieyouxu): use `std::env::consts::EXE_EXTENSION`.
3575
+ let recipe_bin = base_dir. join ( if self . config . target . contains ( "windows" ) {
3576
+ "rmake.exe"
3577
+ } else {
3578
+ "rmake"
3579
+ } ) ;
3580
+ debug ! ( ?recipe_bin) ;
3581
+
3586
3582
// FIXME(jieyouxu): explain what the hecc we are doing here.
3587
3583
// FIXME(jieyouxu): audit these env vars. some of them only makes sense for make, not rustc!
3588
3584
let mut cmd = Command :: new ( & self . config . rustc_path ) ;
@@ -3624,8 +3620,11 @@ impl<'test> TestCx<'test> {
3624
3620
self . fatal_proc_rec ( "run-make test failed: could not build `rmake.rs` recipe" , & res) ;
3625
3621
}
3626
3622
3627
- // Finally, we need to run the recipe binary to build and run the actual tests.
3628
- debug ! ( ?recipe_bin) ;
3623
+ // FIXME(jieyouxu): explain what the hecc we are doing here.
3624
+ let mut stage_std_path = PathBuf :: new ( ) ;
3625
+ stage_std_path. push ( & build_root) ;
3626
+ stage_std_path. push ( & stage) ;
3627
+ stage_std_path. push ( "lib" ) ;
3629
3628
3630
3629
// FIXME(jieyouxu): explain what the hecc we are doing here.
3631
3630
let mut dylib_env_paths = orig_dylib_env_paths. clone ( ) ;
0 commit comments