@@ -3440,17 +3440,8 @@ impl<'test> TestCx<'test> {
3440
3440
// library.
3441
3441
// 2. We need to run the recipe binary.
3442
3442
3443
- // FIXME(jieyouxu): path examples
3444
- // source_root="/home/gh-jieyouxu/rust"
3445
- // src_root="/home/gh-jieyouxu/rust"
3446
- // build_root="/home/gh-jieyouxu/rust/build/aarch64-unknown-linux-gnu"
3447
- // self.config.build_base="/home/gh-jieyouxu/rust/build/aarch64-unknown-linux-gnu/test/run-make"
3448
- // support_lib_deps="/home/gh-jieyouxu/rust/build/aarch64-unknown-linux-gnu/stage1-tools/aarch64-unknown-linux-gnu/release/deps"
3449
- // support_lib_deps_deps="/home/gh-jieyouxu/rust/build/aarch64-unknown-linux-gnu/stage1-tools/release/deps"
3450
- // recipe_bin="/home/gh-jieyouxu/rust/build/aarch64-unknown-linux-gnu/test/run-make/a-b-a-linker-guard/a-b-a-linker-guard/rmake"
3451
-
3452
- // So we assume the rust-lang/rust project setup looks like (our `.` is the top-level
3453
- // directory, irrelevant entries to our purposes omitted):
3443
+ // So we assume the rust-lang/rust project setup looks like the following (our `.` is the
3444
+ // top-level directory, irrelevant entries to our purposes omitted):
3454
3445
//
3455
3446
// ```
3456
3447
// . // <- `source_root`
@@ -3467,15 +3458,12 @@ impl<'test> TestCx<'test> {
3467
3458
// `source_root` is the top-level directory containing the rust-lang/rust checkout.
3468
3459
let source_root =
3469
3460
self . config . find_rust_src_root ( ) . expect ( "could not determine rust source root" ) ;
3470
- debug ! ( ?source_root) ;
3471
3461
// `self.config.build_base` is actually the build base folder + "test" + test suite name, it
3472
- // looks like `build/<host_tuplet >/test/run-make`. But we want `build/<host_tuplet >/`. Note
3462
+ // looks like `build/<host_triple >/test/run-make`. But we want `build/<host_triple >/`. Note
3473
3463
// that the `build` directory does not need to be called `build`, nor does it need to be
3474
3464
// under `source_root`, so we must compute it based off of `self.config.build_base`.
3475
- debug ! ( ?self . config. build_base) ;
3476
3465
let build_root =
3477
3466
self . config . build_base . parent ( ) . and_then ( Path :: parent) . unwrap ( ) . to_path_buf ( ) ;
3478
- debug ! ( ?build_root) ;
3479
3467
3480
3468
// We construct the following directory tree for each rmake.rs test:
3481
3469
// ```
@@ -3511,12 +3499,12 @@ impl<'test> TestCx<'test> {
3511
3499
}
3512
3500
}
3513
3501
3514
- // `self.config.stage_id` looks like `stage1-<target_tuplet >`, but we only want
3502
+ // `self.config.stage_id` looks like `stage1-<target_triple >`, but we only want
3515
3503
// the `stage1` part as that is what the output directories of bootstrap are prefixed with.
3516
3504
// Note that this *assumes* build layout from bootstrap is produced as:
3517
3505
//
3518
3506
// ```
3519
- // build/<target_tuplet >/ // <- this is `build_root`
3507
+ // build/<target_triple >/ // <- this is `build_root`
3520
3508
// ├── stage0
3521
3509
// ├── stage0-bootstrap-tools
3522
3510
// ├── stage0-codegen
@@ -3533,7 +3521,6 @@ impl<'test> TestCx<'test> {
3533
3521
// ```
3534
3522
// FIXME(jieyouxu): improve the communication between bootstrap and compiletest here so
3535
3523
// we don't have to hack out a `stageN`.
3536
- debug ! ( ?self . config. stage_id) ;
3537
3524
let stage = self . config . stage_id . split ( '-' ) . next ( ) . unwrap ( ) ;
3538
3525
3539
3526
// In order to link in the support library as a rlib when compiling recipes, we need three
@@ -3545,12 +3532,12 @@ impl<'test> TestCx<'test> {
3545
3532
// The paths look like
3546
3533
//
3547
3534
// ```
3548
- // build/<target_tuplet >/
3535
+ // build/<target_triple >/
3549
3536
// ├── stageN-tools-bin/
3550
3537
// │ └── librun_make_support.rlib // <- support rlib itself
3551
3538
// ├── stageN-tools/
3552
3539
// │ ├── release/deps/ // <- deps of deps
3553
- // │ └── <host_tuplet >/release/deps/ // <- deps
3540
+ // │ └── <host_triple >/release/deps/ // <- deps
3554
3541
// ```
3555
3542
//
3556
3543
// There almost certainly is a better way to do this, but this seems to work for now.
@@ -3561,7 +3548,6 @@ impl<'test> TestCx<'test> {
3561
3548
p. push ( "librun_make_support.rlib" ) ;
3562
3549
p
3563
3550
} ;
3564
- debug ! ( ?support_lib_path) ;
3565
3551
3566
3552
let support_lib_deps = {
3567
3553
let mut p = build_root. clone ( ) ;
@@ -3571,7 +3557,6 @@ impl<'test> TestCx<'test> {
3571
3557
p. push ( "deps" ) ;
3572
3558
p
3573
3559
} ;
3574
- debug ! ( ?support_lib_deps) ;
3575
3560
3576
3561
let support_lib_deps_deps = {
3577
3562
let mut p = build_root. clone ( ) ;
@@ -3580,7 +3565,6 @@ impl<'test> TestCx<'test> {
3580
3565
p. push ( "deps" ) ;
3581
3566
p
3582
3567
} ;
3583
- debug ! ( ?support_lib_deps_deps) ;
3584
3568
3585
3569
// To compile the recipe with rustc, we need to provide suitable dynamic library search
3586
3570
// paths to rustc. This includes both:
@@ -3605,10 +3589,7 @@ impl<'test> TestCx<'test> {
3605
3589
p. set_extension ( env:: consts:: EXE_EXTENSION ) ;
3606
3590
p
3607
3591
} ;
3608
- debug ! ( ?recipe_bin) ;
3609
3592
3610
- // FIXME(jieyouxu): explain what the hecc we are doing here.
3611
- // FIXME(jieyouxu): audit these env vars. some of them only makes sense for make, not rustc!
3612
3593
let mut rustc = Command :: new ( & self . config . rustc_path ) ;
3613
3594
rustc
3614
3595
. arg ( "-o" )
@@ -3673,7 +3654,6 @@ impl<'test> TestCx<'test> {
3673
3654
p. push ( "lib" ) ;
3674
3655
p
3675
3656
} ;
3676
- debug ! ( ?stage_std_path) ;
3677
3657
3678
3658
// Compute dynamic library search paths for recipes.
3679
3659
let recipe_dylib_search_paths = {
@@ -3682,7 +3662,6 @@ impl<'test> TestCx<'test> {
3682
3662
paths. push ( stage_std_path. join ( "rustlib" ) . join ( & self . config . host ) . join ( "lib" ) ) ;
3683
3663
paths
3684
3664
} ;
3685
- debug ! ( ?recipe_dylib_search_paths) ;
3686
3665
3687
3666
// Compute runtime library search paths for recipes. This is target-specific.
3688
3667
let target_runtime_dylib_search_paths = {
@@ -3691,8 +3670,6 @@ impl<'test> TestCx<'test> {
3691
3670
paths
3692
3671
} ;
3693
3672
3694
- // FIXME(jieyouxu): explain what the hecc we are doing here.
3695
- // FIXME(jieyouxu): audit these env vars. some of them only makes sense for make, not rustc!
3696
3673
// FIXME(jieyouxu): please rename `TARGET_RPATH_ENV`, `HOST_RPATH_DIR` and
3697
3674
// `TARGET_RPATH_DIR`, it is **extremely** confusing!
3698
3675
let mut cmd = Command :: new ( & recipe_bin) ;
0 commit comments