Skip to content

Commit 8def564

Browse files
CodaFicompnerd
authored andcommitted
Add SwiftSyntax to the SourceKit-LSP Build
As of swiftlang/sourcekit-lsp#651 sourcekit-lsp now depends on SwiftSyntax for its internal representation of documents.
1 parent c7bbf63 commit 8def564

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.ci/vs2022.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,30 @@ stages:
13491349
inputs:
13501350
cmakeArgs:
13511351
--build $(Agent.BuildDirectory)/indexstore-db
1352+
- task: CMake@1
1353+
inputs:
1354+
cmakeArgs:
1355+
-B $(Agent.BuildDirectory)/swift-syntax
1356+
-D BUILD_SHARED_LIBS=YES
1357+
-D BUILD_TESTING=NO
1358+
-D CMAKE_BUILD_TYPE=Release
1359+
-D CMAKE_C_COMPILER=$(workspace.root)/toolchain-amd64/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
1360+
-D CMAKE_C_COMPILER_TARGET=$(platform)-unknown-windows-msvc
1361+
-D CMAKE_C_FLAGS="/GS- /Oy /Gw /Gy"
1362+
-D CMAKE_CXX_COMPILER=$(workspace.root)/toolchain-amd64/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/clang-cl.exe
1363+
-D CMAKE_CXX_COMPILER_TARGET=$(platform)-unknown-windows-msvc
1364+
-D CMAKE_CXX_FLAGS="/GS- /Oy /Gw /Gy"
1365+
-D CMAKE_MT=mt
1366+
-D CMAKE_INSTALL_PREFIX=$(Build.StagingDirectory)/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr
1367+
-D CMAKE_Swift_COMPILER=$(workspace.root)/toolchain-amd64/Library/Developer/Toolchains/unknown-Asserts-development.xctoolchain/usr/bin/swiftc.exe
1368+
-D CMAKE_Swift_COMPILER_TARGET=$(platform)-unknown-windows-msvc
1369+
-D CMAKE_Swift_FLAGS="-resource-dir $(Pipeline.Workspace)/windows-sdk-$(arch)/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift -L$(Pipeline.Workspace)/windows-sdk-$(arch)/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows"
1370+
-G Ninja
1371+
-S $(Build.SourcesDirectory)/swift-syntax
1372+
- task: CMake@1
1373+
inputs:
1374+
cmakeArgs:
1375+
--build $(Agent.BuildDirectory)/swift-syntax
13521376
- task: CMake@1
13531377
inputs:
13541378
cmakeArgs:
@@ -1376,6 +1400,7 @@ stages:
13761400
-D SwiftPM_DIR=$(Agent.BuildDirectory)/swift-package-manager/cmake/modules
13771401
-D SwiftSystem_DIR=$(Agent.BuildDirectory)/swift-system/cmake/modules
13781402
-D TSC_DIR=$(Agent.BuildDirectory)/swift-tools-support-core/cmake/modules
1403+
-D SwiftSyntax_DIR=$(Agent.BuildDirectory)/swift-syntax/cmake/modules
13791404
- task: CMake@1
13801405
inputs:
13811406
cmakeArgs:

0 commit comments

Comments
 (0)