Skip to content

Commit a079beb

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.
1 parent 75d60af commit a079beb

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)