Skip to content

Commit 5d95051

Browse files
committed
utils: unlock building swift-inspect
When building for ARM64, we can now build swift-inspect as we use CMake for the cross-compilation. This is a second attempt for #77810
1 parent f7d1c59 commit 5d95051

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utils/build.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2669,8 +2669,7 @@ function Build-Inspect() {
26692669
-Bin (Get-HostProjectBinaryCache SwiftInspect) `
26702670
-InstallTo "$($HostArch.ToolchainInstallRoot)\usr" `
26712671
-Arch $HostArch `
2672-
-UseBuiltCompilers Swift `
2673-
-UseSwiftSwiftDriver `
2672+
-UseBuiltCompilers C,CXX,Swift `
26742673
-SwiftSDK $SDKRoot `
26752674
-Defines @{
26762675
CMAKE_Swift_FLAGS = @("-Xcc", "-I$SDKRoot\usr\include\swift\SwiftRemoteMirror");
@@ -2873,6 +2872,7 @@ if (-not $SkipBuild) {
28732872
Invoke-BuildStep Build-Format $HostArch
28742873
Invoke-BuildStep Build-IndexStoreDB $HostArch
28752874
Invoke-BuildStep Build-SourceKitLSP $HostArch
2875+
Invoke-BuildStep Build-Inspect $HostArch
28762876
}
28772877

28782878
Install-HostToolchain
@@ -2882,7 +2882,6 @@ if (-not $SkipBuild -and $Allocator -eq "mimalloc") {
28822882
}
28832883

28842884
if (-not $SkipBuild -and -not $IsCrossCompiling) {
2885-
Invoke-BuildStep Build-Inspect $HostArch
28862885
Invoke-BuildStep Build-DocC $HostArch
28872886
}
28882887

0 commit comments

Comments
 (0)