Skip to content

Commit bb313f0

Browse files
committed
build: add swift-inspect to the build
This is part of the default toolchain distribution and needs to be built for packaging as well as development. Add this to the build set.
1 parent ffa4006 commit bb313f0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

build.ps1

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,16 @@ function Install-HostToolchain() {
13221322
Copy-Item -Force $BinaryCache\7\bin\swift-driver.exe $ToolchainInstallRoot\usr\bin\swiftc.exe
13231323
}
13241324

1325+
function Build-Inspect() {
1326+
$OutDir = Join-Path -Path $HostArch.BinaryRoot -ChildPath swift-inspect
1327+
1328+
Build-SPMProject `
1329+
-Src $SourceCache\swift\tools\swift-inspect `
1330+
-Bin $OutDir `
1331+
-Arch $HostArch `
1332+
-Xcc "-I$($HostArch.SDKInstallRoot)\usr\include\swift\SwiftRemoteMirror" -Xlinker "$($HostArch.SDKInstallRoot)\usr\lib\swift\windows\$($HostArch.LLVMName)\swiftRemoteMirror.lib"
1333+
}
1334+
13251335
function Build-Installer() {
13261336
Build-WiXProject bld.wixproj -Arch $HostArch -Properties @{
13271337
DEVTOOLS_ROOT = "$($HostArch.ToolchainInstallRoot)\";
@@ -1355,6 +1365,10 @@ function Build-Installer() {
13551365
}
13561366
}
13571367

1368+
Build-WiXProject swift-inspect.wixproj -Arch $HostArch -Properties @{
1369+
SWIFT_INSPECT_BUILD = "$($HostArch.BinaryRoot)\swift-inspect\release"
1370+
}
1371+
13581372
Build-WiXProject installer.wixproj -Arch $HostArch -Bundle -Properties @{
13591373
OutputPath = "$($HostArch.BinaryRoot)\";
13601374
MSI_LOCATION = "$($HostArch.BinaryRoot)\msi\";
@@ -1416,6 +1430,10 @@ if (-not $SkipBuild) {
14161430

14171431
Install-HostToolchain
14181432

1433+
if (-not $SkipBuild) {
1434+
Build-Inspect $HostArch
1435+
}
1436+
14191437
if (-not $SkipPackaging) {
14201438
Build-Installer
14211439
}

0 commit comments

Comments
 (0)