Skip to content

Commit bfd690d

Browse files
committed
build: wire up the early swift-syntax build to the build
This enables the early swift syntax build to get us macro support on Windows.
1 parent 0969fa2 commit bfd690d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/build-windows-toolchain.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ cmake ^
229229

230230
-D CMAKE_INSTALL_PREFIX="%InstallRoot%" ^
231231

232+
-D CMAKE_Swift_COMPILER="%BuildRoot%/toolchains/PFiles64/Swift/Toolchains/0.0.0+Asserts/usr/bin/swiftc.exe" ^
233+
-D CMAKE_Swift_FLAGS="-sdk %BuildRoot%/toolchains/PFiles64/Swift/Platforms/Windows.platform/Developer/SDKs/Windows.sdk" ^
234+
232235
-D LLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-windows-msvc ^
233236

234237
-D PACKAGE_VENDOR="swift.org" ^
@@ -248,9 +251,11 @@ cmake ^
248251
-D LLVM_EXTERNAL_CMARK_SOURCE_DIR="%SourceRoot%\cmark" ^
249252
-D PYTHON_HOME=%PYTHON_HOME% ^
250253
-D PYTHON_EXECUTABLE=%PYTHON_HOME%\python.exe ^
254+
-D SWIFT_PATH_TO_EARLYSWIFTSYNTAX_BUILD_DIR="%BuildRoot%\99 ^
251255
-D SWIFT_PATH_TO_LIBDISPATCH_SOURCE="%SourceRoot%\swift-corelibs-libdispatch" ^
252256
-D SWIFT_PATH_TO_SWIFT_SYNTAX_SOURCE="%SourceRoot%\swift-syntax" ^
253257
-D SWIFT_PATH_TO_STRING_PROCESSING_SOURCE=%SourceRoot%\swift-experimental-string-processing ^
258+
-D SWIFT_PATH_TO_SWIFT_SDK="%BuildRoot%/toolchains/PFiles64/Swift/Platforms/Windows.platform/Developer/SDKs/Windows.sdk" ^
254259

255260
-G Ninja ^
256261
-S llvm-project\llvm || (exit /b)

0 commit comments

Comments
 (0)