@@ -192,7 +192,7 @@ cmake ^
192
192
cmake --build " %BuildRoot% \curl" || (exit /b)
193
193
cmake --build " %BuildRoot% \curl" --target install || (exit /b)
194
194
195
- path %BuildRoot% \toolchains\swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a \PFiles64\Swift\Runtimes\0.0.0\ usr\bin;%BuildRoot% \toolchains\swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a\PFiles64\Swift \Toolchains\0.0.0+ Asserts\usr\bin;%Path%
195
+ path %BuildRoot% \toolchains\5.9.0 \PFiles64\Swift\runtime-development\ usr\bin;%BuildRoot% \toolchains\5.9.0\Library\Developer \Toolchains\unknown- Asserts-development.xctoolchain \usr\bin;%Path%
196
196
197
197
:: Build Swift Syntax
198
198
cmake ^
@@ -205,8 +205,8 @@ cmake ^
205
205
-D CMAKE_CXX_COMPILER=cl ^
206
206
-D CMAKE_CXX_FLAGS=" /GS- /Oy /Gw /Gy" ^
207
207
-D CMAKE_MT=mt ^
208
- -D CMAKE_Swift_COMPILER=%BuildRoot% /toolchains/swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a/PFiles64/Swift /Toolchains/0.0.0+ Asserts/usr/bin/swiftc.exe ^
209
- -D CMAKE_Swift_FLAGS=" -sdk %BuildRoot% /toolchains/swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a/PFiles64/Swift /Platforms/Windows.platform/Developer/SDKs/Windows.sdk" ^
208
+ -D CMAKE_Swift_COMPILER=%BuildRoot% /toolchains/5.9.0/Library/Developer /Toolchains/unknown- Asserts-development.xctoolchain /usr/bin/swiftc.exe ^
209
+ -D CMAKE_Swift_FLAGS=" -sdk %BuildRoot% /toolchains/5.9.0/Library/Developer /Platforms/Windows.platform/Developer/SDKs/Windows.sdk" ^
210
210
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
211
211
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
212
212
-D CMAKE_Swift_FLAGS_RELEASE=" -O" ^
@@ -236,8 +236,8 @@ cmake ^
236
236
237
237
-D CMAKE_INSTALL_PREFIX=" %InstallRoot% " ^
238
238
239
- -D CMAKE_Swift_COMPILER=" %BuildRoot% /toolchains/swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a/PFiles64/Swift /Toolchains/0.0.0+ Asserts/usr/bin/swiftc.exe" ^
240
- -D CMAKE_Swift_FLAGS=" -sdk %BuildRoot% /toolchains/swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a/PFiles64/Swift /Platforms/Windows.platform/Developer/SDKs/Windows.sdk" ^
239
+ -D CMAKE_Swift_COMPILER=" %BuildRoot% /toolchains/5.9.0/Library/Developer /Toolchains/unknown- Asserts-development.xctoolchain /usr/bin/swiftc.exe" ^
240
+ -D CMAKE_Swift_FLAGS=" -sdk %BuildRoot% /toolchains/5.9.0/Library/Developer /Platforms/Windows.platform/Developer/SDKs/Windows.sdk" ^
241
241
242
242
-D LLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-windows-msvc ^
243
243
@@ -265,7 +265,7 @@ cmake ^
265
265
-D SWIFT_PATH_TO_LIBDISPATCH_SOURCE=" %SourceRoot% \swift-corelibs-libdispatch" ^
266
266
-D SWIFT_PATH_TO_SWIFT_SYNTAX_SOURCE=" %SourceRoot% \swift-syntax" ^
267
267
-D SWIFT_PATH_TO_STRING_PROCESSING_SOURCE=%SourceRoot% \swift-experimental-string-processing ^
268
- -D SWIFT_PATH_TO_SWIFT_SDK=" %BuildRoot% /toolchains/swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a/PFiles64/Swift /Platforms/Windows.platform/Developer/SDKs/Windows.sdk" ^
268
+ -D SWIFT_PATH_TO_SWIFT_SDK=" %BuildRoot% /toolchains/5.9.0/Library/Developer /Platforms/Windows.platform/Developer/SDKs/Windows.sdk" ^
269
269
270
270
-G Ninja ^
271
271
-S llvm-project\llvm || (exit /b)
@@ -866,12 +866,14 @@ endlocal
866
866
:FetchX64Toolchain
867
867
setlocal enableextensions enabledelayedexpansion
868
868
869
- curl.exe -k -sOL " https://github.com/thebrowsercompany/swift-build/releases/download/20230919.2/installer-amd64.exe" || (exit /b)
870
- " WiX-4.0.1\tools\net6.0\any\wix.exe" burn extract installer-amd64.exe -o %BuildRoot% \toolchains || (exit /b)
871
- msiexec.exe /qn /a " %BuildRoot% \toolchains\a0" TARGETDIR=" %BuildRoot% \toolchains\swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a\PFiles64\Swift\Runtimes\0.0.0\usr\bin\" || (exit /b)
872
- msiexec.exe /qn /a " %BuildRoot% \toolchains\a1" TARGETDIR=" %BuildRoot% \toolchains\swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a\" || (exit /b)
873
- msiexec.exe /qn /a " %BuildRoot% \toolchains\a2" TARGETDIR=" %BuildRoot% \toolchains\swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a\" || (exit /b)
874
- msiexec.exe /qn /a " %BuildRoot% \toolchains\a5" TARGETDIR=" %BuildRoot% \toolchains\swift-DEVELOPMENT-SNAPSHOT-2023-08-12-a\" || (exit /b)
869
+ curl.exe -k -sOL " https://download.swift.org/swift-5.9-release/windows10/swift-5.9-RELEASE/swift-5.9-RELEASE-windows10.exe" || (exit /b)
870
+ " WiX-4.0.1\tools\net6.0\any\wix.exe" burn extract swift-5.9-RELEASE-windows10.exe -o %BuildRoot% \toolchains || (exit /b)
871
+ msiexec.exe /qn /a " %BuildRoot% \toolchains\a0" TARGETDIR=" %BuildRoot% \toolchains\5.9.0\" || (exit /b)
872
+ msiexec.exe /qn /a " %BuildRoot% \toolchains\a1" TARGETDIR=" %BuildRoot% \toolchains\5.9.0\" || (exit /b)
873
+ msiexec.exe /qn /a " %BuildRoot% \toolchains\a2" TARGETDIR=" %BuildRoot% \toolchains\5.9.0\" || (exit /b)
874
+ msiexec.exe /qn /a " %BuildRoot% \toolchains\a3" TARGETDIR=" %BuildRoot% \toolchains\5.9.0\" || (exit /b)
875
+ msiexec.exe /qn /a " %BuildRoot% \toolchains\a4" TARGETDIR=" %BuildRoot% \toolchains\5.9.0\" || (exit /b)
876
+ msiexec.exe /qn /a " %BuildRoot% \toolchains\a5" TARGETDIR=" %BuildRoot% \toolchains\5.9.0\" || (exit /b)
875
877
876
878
goto :eof
877
879
endlocal
0 commit comments