Skip to content

Commit a83c04e

Browse files
authored
Merge pull request swiftlang#25274 from drodriguez/windows-build-in-short-path
[windows] Use only a drive letter as build directory.
2 parents 189bd6c + 6c349ec commit a83c04e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

utils/build-windows.bat

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,15 @@ set source_root=%current_directory%\..\..
3737
cd %source_root%
3838
set source_root=%CD%
3939

40-
set build_root=%source_root%\build
40+
set full_build_root=%source_root%\build
4141
set install_directory=%build_root%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr
4242

43-
mkdir %build_root%
43+
mkdir %full_build_root%
44+
:: Use the shortest path we can for the build directory, to avoid Windows
45+
:: path problems as much as we can.
46+
subst S: /d
47+
subst S: %full_build_root% %exitOnError%
48+
set build_root=S:
4449

4550
call :clone_repositories %exitOnError%
4651
call :download_icu %exitOnError%

0 commit comments

Comments
 (0)