Skip to content

Commit b2f9d97

Browse files
committed
Get the realpath of the build directory when building SwiftSyntax
We were currently canonicalizing the build directory when testing SwiftSyntax but not when building it. This caused errors if the build directory was a symlink because module caches were created for the non-canonicalized path during the build and then referenced with the canonicalized path during testing.
1 parent ac7bcbe commit b2f9d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-script.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ def main():
851851
try:
852852
builder = Builder(
853853
toolchain=args.toolchain,
854-
build_dir=args.build_dir,
854+
build_dir=realpath(args.build_dir),
855855
multiroot_data_file=args.multiroot_data_file,
856856
release=args.release,
857857
verbose=args.verbose,

0 commit comments

Comments
 (0)