Skip to content

Commit 2b67bff

Browse files
committed
utils: wire up the CMake based build of DocC SymbolKit
This is in preparation to build DocC as a shared library via CMake to allow linking into SourceKit-LSP.
1 parent 577945d commit 2b67bff

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

utils/build.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,6 +2522,16 @@ function Build-SourceKitLSP($Arch) {
25222522
}
25232523
}
25242524

2525+
function Build-SymbolKit($Arch) {
2526+
Build-CMakeProject `
2527+
-Src $SourceCache\swift-docc-symbolkit `
2528+
-Bin (Get-HostProjectBinaryCache SymbolKit) `
2529+
-Arch $Arch `
2530+
-UseBuiltCompilers Swift `
2531+
-SwiftSDK (Get-HostSwiftSDK) `
2532+
-BuildTargets default
2533+
}
2534+
25252535
function Test-SourceKitLSP {
25262536
$SwiftPMArguments = @(
25272537
# dispatch
@@ -2889,6 +2899,7 @@ if (-not $SkipBuild) {
28892899
Invoke-BuildStep Build-LMDB $HostArch
28902900
Invoke-BuildStep Build-IndexStoreDB $HostArch
28912901
Invoke-BuildStep Build-SourceKitLSP $HostArch
2902+
Invoke-BuildStep Build-SymbolKit $HostArch
28922903
Invoke-BuildStep Build-Inspect $HostArch
28932904
}
28942905

0 commit comments

Comments
 (0)