Skip to content

Commit 85db856

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 201edb8 commit 85db856

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
@@ -2479,6 +2479,16 @@ function Build-SourceKitLSP($Arch) {
24792479
}
24802480
}
24812481

2482+
function Build-SymbolKit($Arch) {
2483+
Build-CMakeProject `
2484+
-Src $SourceCache\swift-docc-symbolkit `
2485+
-Bin (Get-HostProjectBinaryCache SymbolKit) `
2486+
-Arch $Arch `
2487+
-UseBuiltCompilers Swift `
2488+
-SwiftSDK (Get-HostSwiftSDK) `
2489+
-BuildTargets default
2490+
}
2491+
24822492
function Test-SourceKitLSP {
24832493
$SwiftPMArguments = @(
24842494
# swift-syntax
@@ -2839,6 +2849,7 @@ if (-not $SkipBuild) {
28392849
Invoke-BuildStep Build-Format $HostArch
28402850
Invoke-BuildStep Build-IndexStoreDB $HostArch
28412851
Invoke-BuildStep Build-SourceKitLSP $HostArch
2852+
Invoke-BuildStep Build-SymbolKit $HostArch
28422853
}
28432854

28442855
Install-HostToolchain

0 commit comments

Comments
 (0)