Skip to content

Commit eed34f0

Browse files
committed
build: add DocC to the default built
DocC is not yet part of the distribution on Windows as we are progressing towards passing the test suite. However, other products were released before the test suites were completely passing and that would remain an option here. Begin building this tool as part of the build as it is meant to be part of the distribution.
1 parent a64d1a5 commit eed34f0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,16 @@ function Build-Format() {
13411341
-Arch $HostArch
13421342
}
13431343

1344+
function Build-DocC() {
1345+
$OutDir = Join-Path -Path $HostArch.BinaryRoot -ChildPath swift-docc
1346+
1347+
Build-SPMProject `
1348+
-Src $SourceCache\swift-docc `
1349+
-Bin $OutDir `
1350+
-Arch $HostArch `
1351+
--product docc
1352+
}
1353+
13441354
function Build-Installer() {
13451355
Build-WiXProject bld.wixproj -Arch $HostArch -Properties @{
13461356
DEVTOOLS_ROOT = "$($HostArch.ToolchainInstallRoot)\";
@@ -1446,6 +1456,7 @@ Install-HostToolchain
14461456
if (-not $SkipBuild) {
14471457
Build-Inspect $HostArch
14481458
Build-Format $HostArch
1459+
Build-DocC $HostArch
14491460
}
14501461

14511462
if (-not $SkipPackaging) {

0 commit comments

Comments
 (0)