Skip to content

Commit 3b079a0

Browse files
committed
Fix the cross-compiling Windows ARM64 build.
Fix the path to use the build arch instead of the host arch when invoking the built swift compiler. This fixes the build failure that's currently worked around with extra path setting. Cherrypick commit a079beb
1 parent 696488a commit 3b079a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ function Build-CMakeProject {
866866
}
867867

868868
if ($UseBuiltCompilers.Contains("Swift")) {
869-
$env:Path = "$($HostArch.SDKInstallRoot)\usr\bin;$($HostArch.BinaryCache)\cmark-gfm-0.29.0.gfm.13\src;$($HostArch.ToolchainInstallRoot)\usr\bin;${env:Path}"
869+
$env:Path = "$($BuildArch.SDKInstallRoot)\usr\bin;$($BuildArch.BinaryCache)\cmark-gfm-0.29.0.gfm.13\src;$($BuildArch.ToolchainInstallRoot)\usr\bin;${env:Path}"
870870
} elseif ($UsePinnedCompilers.Contains("Swift")) {
871871
$env:Path = "$(Get-PinnedToolchainRuntime);${env:Path}"
872872
}

0 commit comments

Comments
 (0)