File tree 4 files changed +9
-3
lines changed
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1281,6 +1281,8 @@ impl Step for Compiletest {
1281
1281
cmd. arg ( "--rustfix-coverage" ) ;
1282
1282
}
1283
1283
1284
+ cmd. env ( "BOOTSTRAP_CARGO" , & builder. initial_cargo ) ;
1285
+
1284
1286
builder. ci_env . force_coloring_in_ci ( & mut cmd) ;
1285
1287
1286
1288
builder. info ( & format ! (
Original file line number Diff line number Diff line change @@ -700,6 +700,10 @@ impl<'a> Builder<'a> {
700
700
}
701
701
702
702
add_dylib_path ( lib_paths, & mut cmd) ;
703
+
704
+ // Provide a RUSTC for this command to use.
705
+ cmd. env ( "RUSTC" , & self . initial_rustc ) ;
706
+
703
707
cmd
704
708
}
705
709
}
Original file line number Diff line number Diff line change 35
35
# HACK(eddyb) sets `RUSTC_BOOTSTRAP=1` so Cargo can accept nightly features.
36
36
# These come from the top-level Rust workspace, that this crate is not a
37
37
# member of, but Cargo tries to load the workspace `Cargo.toml` anyway.
38
- cd $(WORK_DIR ) && cd $(CRATE ) && env RUSTC_BOOTSTRAP=1 $(CARGO ) build --target $(TARGET ) -v
38
+ cd $(WORK_DIR ) && cd $(CRATE ) && env RUSTC_BOOTSTRAP=1 $(BOOTSTRAP_CARGO ) build --target $(TARGET ) -v
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ pushd $WORK_DIR
12
12
# These come from the top-level Rust workspace, that this crate is not a
13
13
# member of, but Cargo tries to load the workspace `Cargo.toml` anyway.
14
14
env RUSTC_BOOTSTRAP=1 RUSTFLAGS=" -C linker=arm-none-eabi-ld -C link-arg=-Tlink.x" \
15
- $CARGO run --target $TARGET | grep " x = 42"
15
+ $BOOTSTRAP_CARGO run --target $TARGET | grep " x = 42"
16
16
env RUSTC_BOOTSTRAP=1 RUSTFLAGS=" -C linker=arm-none-eabi-ld -C link-arg=-Tlink.x" \
17
- $CARGO run --target $TARGET --release | grep " x = 42"
17
+ $BOOTSTRAP_CARGO run --target $TARGET --release | grep " x = 42"
18
18
popd
19
19
popd
You can’t perform that action at this time.
0 commit comments