about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-04-14 18:15:34 +0200
committerGitHub <noreply@github.com>2025-04-14 18:15:34 +0200
commitb70e119e37cf39c4efb1392e81d9f0fbceba457b (patch)
tree448327bddd57cac12e6fcd2a9d68cd0b12b295a7 /src/bootstrap/bootstrap.py
parent06d0ea7c339032edcf0b162af8587cd61547b976 (diff)
parentd5de2fa8bba93cf5cde42b4605b6886f8660f5bf (diff)
downloadrust-b70e119e37cf39c4efb1392e81d9f0fbceba457b.tar.gz
rust-b70e119e37cf39c4efb1392e81d9f0fbceba457b.zip
Rollup merge of #139804 - WaffleLapkin:real, r=jieyouxu
use `realpath` in `bootstrap.py` when creating build-dir

Fixes #139800
r? `@jieyouxu`

My use case for `./build` being a symlink is this: my "default" ~~partition~~ btrfs subvolume is snapshotted/backed up. I don't want to backup target-likes, so I move them to a special subvolume which isn't backed up. `./build` is a symlink into that subvolume. (`build.build-dir` configuration is not fully sufficient, it is still nice to be able to check build files with `ls ./build` or call tools from there)
Diffstat (limited to 'src/bootstrap/bootstrap.py')
-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 140f601253c..42ad14a81d0 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -1331,7 +1331,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()