Skip to content

Commit b31a955

Browse files
authored
Merge pull request #60678 from stevapple/build-windows-cleanup
[build-windows] Minor cleanups
2 parents 165a379 + 16653c5 commit b31a955

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

utils/build-windows.bat

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ setlocal enableextensions enabledelayedexpansion
2828

2929
PATH=%PATH%;%PYTHON_HOME%
3030

31-
set icu_version_major=64
32-
set icu_version_minor=2
31+
set icu_version_major=69
32+
set icu_version_minor=1
3333
set icu_version=%icu_version_major%_%icu_version_minor%
3434
set icu_version_dashed=%icu_version_major%-%icu_version_minor%
3535

@@ -68,9 +68,10 @@ set RunTest=1
6868
if "%1"=="-notest" set RunTest=0
6969

7070
call :clone_repositories %exitOnError%
71-
call :download_icu %exitOnError%
71+
:: TODO: Disabled until we need Foundation in this build script.
72+
:: call :download_icu %exitOnError%
7273
:: TODO: Disabled until we need LLBuild/SwiftPM in this build script.
73-
:: call :download_sqlite3
74+
:: call :download_sqlite3 %exitOnError%
7475

7576
call :build_llvm %exitOnError%
7677
path %PATH%;%install_directory%\bin
@@ -82,10 +83,10 @@ call :build_swift %exitOnError%
8283

8384
call :build_lldb %exitOnError%
8485

85-
path %PATH%;C:\Program Files\Git\usr\bin
86+
path %PATH%;%SystemDrive%\Program Files\Git\usr\bin
8687
call :build_libdispatch %exitOnError%
8788

88-
path %source_root%\icu-%icu_version%\bin64;%install_directory%\bin;%build_root%\swift\bin;%build_root%\swift\libdispatch-prefix\bin;%PATH%
89+
path %install_directory%\bin;%build_root%\swift\bin;%build_root%\swift\libdispatch-prefix\bin;%PATH%
8990

9091
if %RunTest%==1 (
9192
call :test_swift %exitOnError%
@@ -104,7 +105,7 @@ setlocal enableextensions enabledelayedexpansion
104105
if defined REPO_SCHEME SET "scheme_arg=--scheme %REPO_SCHEME%"
105106

106107
git -C "%source_root%\swift" config --local core.autocrlf input
107-
git -C "%source_root%\swift" config --local core.symlink true
108+
git -C "%source_root%\swift" config --local core.symlinks true
108109
git -C "%source_root%\swift" checkout-index --force --all
109110

110111
:: Always skip Swift, since it is checked out by Jenkins
@@ -134,15 +135,14 @@ endlocal
134135

135136

136137
:download_icu
137-
:: Downloads ICU, which will be used as a dependency for the Swift Standard
138-
:: Library and Foundation.
138+
:: Downloads ICU, which will be used as a dependency for Foundation.
139139
setlocal enableextensions enabledelayedexpansion
140140

141-
set file_name=icu4c-%icu_version%-Win64-MSVC2017.zip
141+
set file_name=icu4c-%icu_version%-Win64-MSVC2019.zip
142142
curl -L -O "https://github.com/unicode-org/icu/releases/download/release-%icu_version_dashed%/%file_name%" %exitOnError%
143143
:: unzip warns about the paths in the zip using slashes, which raises the
144144
:: errorLevel to 1. We cannot use exitOnError, and have to ignore errors.
145-
"C:\Program Files\Git\usr\bin\unzip.exe" -o %file_name% -d "%source_root%\icu-%icu_version%"
145+
"%SystemDrive%\Program Files\Git\usr\bin\unzip.exe" -o %file_name% -d "%source_root%\icu-%icu_version%"
146146
exit /b 0
147147

148148
goto :eof
@@ -154,9 +154,9 @@ endlocal
154154
:: Swift Package Manager.
155155
setlocal enableextensions enabledelayedexpansion
156156

157-
set file_name=sqlite-amalgamation-3270200.zip
158-
curl -L -O "https://www.sqlite.org/2019/%file_name%" %exitOnError%
159-
"C:\Program Files\Git\usr\bin\unzip.exe" -o %file_name% %exitOnError%
157+
set file_name=sqlite-amalgamation-3360000.zip
158+
curl -L -O "https://www.sqlite.org/2021/%file_name%" %exitOnError%
159+
"%SystemDrive%\Program Files\Git\usr\bin\unzip.exe" -o %file_name% %exitOnError%
160160

161161
goto :eof
162162
endlocal

0 commit comments

Comments
 (0)