about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-12-04 12:24:24 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-12-04 12:24:24 +0000
commit28533886c33bff1a54ce8f3ea52321fb67978783 (patch)
treeebcc48fe45107897a72cdd5bfdcc7b14cd3555c0
parenteff1c5d627196461ac458b22b6806dc1c2720065 (diff)
downloadrust-28533886c33bff1a54ce8f3ea52321fb67978783.tar.gz
rust-28533886c33bff1a54ce8f3ea52321fb67978783.zip
Fix rustc test suite
-rw-r--r--build_system/build_sysroot.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/build_system/build_sysroot.rs b/build_system/build_sysroot.rs
index 62cef3dc172..e47e9829916 100644
--- a/build_system/build_sysroot.rs
+++ b/build_system/build_sysroot.rs
@@ -247,6 +247,7 @@ fn build_clif_sysroot_for_triple(
     let mut build_cmd = STANDARD_LIBRARY.build(&compiler, dirs);
     build_cmd.arg("--release");
     build_cmd.arg("--features").arg("backtrace panic-unwind compiler-builtins-no-f16-f128");
+    build_cmd.arg(format!("-Zroot-dir={}", STDLIB_SRC.to_path(dirs).display()));
     build_cmd.env("CARGO_PROFILE_RELEASE_DEBUG", "true");
     build_cmd.env("__CARGO_DEFAULT_LIB_METADATA", "cg_clif");
     if compiler.triple.contains("apple") {