Skip to content

Commit 322ff0b

Browse files
committed
Work around rustbuild bug
1 parent 94d5215 commit 322ff0b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/setup_rust_fork.sh

+15
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,21 @@ index d95b5b7f17f..00b6f0e3635 100644
2727
[dev-dependencies]
2828
rand = "0.7"
2929
rand_xorshift = "0.2"
30+
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs
31+
index a6333976f2a..c9a872e876c 100644
32+
--- a/src/bootstrap/config.rs
33+
+++ b/src/bootstrap/config.rs
34+
@@ -917,6 +917,10 @@ pub fn parse(args: &[String]) -> Config {
35+
config.initial_cargo = config.out.join(config.build.triple).join("stage0/bin/cargo");
36+
}
37+
38+
+ // Workaround for rustbuild bug
39+
+ config.initial_rustc = PathBuf::from("$(pwd)/../build/rustc-clif");
40+
+ config.initial_cargo = PathBuf::from("$(rustup which cargo)");
41+
+
42+
// NOTE: it's important this comes *after* we set \`initial_rustc\` just above.
43+
if config.dry_run {
44+
let dir = config.out.join("tmp-dry-run");
3045
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
3146
index 8431aa7b818..a3ff7e68ce5 100644
3247
--- a/src/tools/compiletest/src/runtest.rs

0 commit comments

Comments
 (0)