Skip to content

Commit ba0c3ff

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 ba0c3ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

utils/build.ps1

Lines changed: 4 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");
@@ -2881,8 +2880,10 @@ if (-not $SkipBuild -and $Allocator -eq "mimalloc") {
28812880
Invoke-BuildStep Build-Mimalloc $HostArch
28822881
}
28832882

2884-
if (-not $SkipBuild -and -not $IsCrossCompiling) {
2883+
if (-not $SkipBuild) {
28852884
Invoke-BuildStep Build-Inspect $HostArch
2885+
}
2886+
if (-not $SkipBuild -and -not $IsCrossCompiling) {
28862887
Invoke-BuildStep Build-DocC $HostArch
28872888
}
28882889

0 commit comments

Comments
 (0)