File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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+
13251335function 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
14171431Install-HostToolchain
14181432
1433+ if (-not $SkipBuild ) {
1434+ Build-Inspect $HostArch
1435+ }
1436+
14191437if (-not $SkipPackaging ) {
14201438 Build-Installer
14211439}
You can’t perform that action at this time.
0 commit comments