about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWaffle Lapkin <waffle.lapkin@gmail.com>2025-04-14 15:32:34 +0200
committerWaffle Lapkin <waffle.lapkin@gmail.com>2025-04-14 15:37:12 +0200
commitd5de2fa8bba93cf5cde42b4605b6886f8660f5bf (patch)
tree31dc3fd4d360930b18583710e2ffb9a2a67fb4c8
parent30f168ef811aec63124eac677e14699baa9395bd (diff)
downloadrust-d5de2fa8bba93cf5cde42b4605b6886f8660f5bf.tar.gz
rust-d5de2fa8bba93cf5cde42b4605b6886f8660f5bf.zip
use `realpath` in `bootstrap.py` when creating build-dir
this avoids crashes when `./build` is a symlink to a non-existent
directory.
-rw-r--r--src/bootstrap/bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 01a9792f1b3..42c314eaa65 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -1298,7 +1298,7 @@ def bootstrap(args):
     build.check_vendored_status()
 
     if not os.path.exists(build.build_dir):
-        os.makedirs(build.build_dir)
+        os.makedirs(os.path.realpath(build.build_dir))
 
     # Fetch/build the bootstrap
     build.download_toolchain()