Skip to content

Commit b70e119

Browse files
authored
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)
2 parents 06d0ea7 + d5de2fa commit b70e119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ def bootstrap(args):
13311331
build.check_vendored_status()
13321332

13331333
if not os.path.exists(build.build_dir):
1334-
os.makedirs(build.build_dir)
1334+
os.makedirs(os.path.realpath(build.build_dir))
13351335

13361336
# Fetch/build the bootstrap
13371337
build.download_toolchain()

0 commit comments

Comments
 (0)