Skip to content

Commit 78bf242

Browse files
committed
bootstrap: Allow setting relative paths for build.rustc
1 parent 6895110 commit 78bf242

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bootstrap/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use once_cell::sync::OnceCell;
3636
use crate::builder::Kind;
3737
use crate::config::{LlvmLibunwind, TargetSelection};
3838
use crate::util::{
39-
exe, libdir, mtime, output, run, run_suppressed, symlink_dir, try_run_suppressed,
39+
absolute, exe, libdir, mtime, output, run, run_suppressed, symlink_dir, try_run_suppressed,
4040
};
4141

4242
mod bolt;
@@ -426,8 +426,9 @@ impl Build {
426426
}
427427

428428
let mut build = Build {
429-
initial_rustc: config.initial_rustc.clone(),
430-
initial_cargo: config.initial_cargo.clone(),
429+
// Use absolute paths for these to allow setting them to e.g. build/host/stage1
430+
initial_rustc: absolute(&config.initial_rustc),
431+
initial_cargo: absolute(&config.initial_cargo),
431432
initial_lld,
432433
initial_libdir,
433434
initial_sysroot: initial_sysroot.into(),

0 commit comments

Comments
 (0)