about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-10-31 08:00:18 +0100
committerRalf Jung <post@ralfj.de>2024-11-30 10:08:31 +0100
commit330ef743de814af56874c35fa7e4662ccc9f315a (patch)
treed8006611cc1889861191866003b1b058ef67e746 /src/bootstrap/bootstrap.py
parent76f3ff605962d7046bc1537597ceed5e12325f54 (diff)
downloadrust-330ef743de814af56874c35fa7e4662ccc9f315a.tar.gz
rust-330ef743de814af56874c35fa7e4662ccc9f315a.zip
bootstrap: show diagnostics relative to rustc src dir
Diffstat (limited to 'src/bootstrap/bootstrap.py')
-rw-r--r--src/bootstrap/bootstrap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index d7ae0299dd6..762f4e653e9 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -1029,7 +1029,8 @@ class RustBuild(object):
             raise Exception("no cargo executable found at `{}`".format(
                 self.cargo()))
         args = [self.cargo(), "build", "--manifest-path",
-                os.path.join(self.rust_root, "src/bootstrap/Cargo.toml")]
+                os.path.join(self.rust_root, "src/bootstrap/Cargo.toml"),
+                "-Zroot-dir="+self.rust_root]
         args.extend("--verbose" for _ in range(self.verbose))
         if self.use_locked_deps:
             args.append("--locked")