Skip to content

Commit d5de2fa

Browse files
committed
use realpath in bootstrap.py when creating build-dir
this avoids crashes when `./build` is a symlink to a non-existent directory.
1 parent 30f168e commit d5de2fa

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
@@ -1298,7 +1298,7 @@ def bootstrap(args):
12981298
build.check_vendored_status()
12991299

13001300
if not os.path.exists(build.build_dir):
1301-
os.makedirs(build.build_dir)
1301+
os.makedirs(os.path.realpath(build.build_dir))
13021302

13031303
# Fetch/build the bootstrap
13041304
build.download_toolchain()

0 commit comments

Comments
 (0)