Skip to content

Commit 5578210

Browse files
hjyamauchibnbarham
authored andcommitted
Fix the runtime and the SDK paths for the swift build compiler case
This fix is necessary for the native win arm64 build where arm64 isn't the first in the WindowsSDKs list. (cherry picked from commit 4a98e37)
1 parent ae29693 commit 5578210

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ function Build-CMakeProject {
11831183
}
11841184

11851185
if ($UseBuiltCompilers.Contains("Swift")) {
1186-
$env:Path = "$($BuildArch.SDKInstallRoot)\usr\bin;$(Get-CMarkBinaryCache $Arch)\src;$($BuildArch.ToolchainInstallRoot)\usr\bin;${env:Path}"
1186+
$env:Path = "$($BuildArch.SDKInstallRoot)\usr\bin;$(Get-CMarkBinaryCache $BuildArch)\src;$($BuildArch.ToolchainInstallRoot)\usr\bin;$(Get-PinnedToolchainRuntime);${env:Path}"
11871187
} elseif ($UsePinnedCompilers.Contains("Swift")) {
11881188
$env:Path = "$(Get-PinnedToolchainRuntime);${env:Path}"
11891189
}
@@ -1944,7 +1944,7 @@ function Build-FoundationMacros() {
19441944

19451945
$SwiftSDK = $null
19461946
if ($Build) {
1947-
$SwiftSDK = $BuildArch.SDKInstallRoot
1947+
$SwiftSDK = $(Get-PinnedToolchainSDK)
19481948
}
19491949

19501950
$InstallDir = $null
@@ -2580,7 +2580,7 @@ function Build-TestingMacros() {
25802580

25812581
$SwiftSDK = $null
25822582
if ($Build) {
2583-
$SwiftSDK = $BuildArch.SDKInstallRoot
2583+
$SwiftSDK = $(Get-PinnedToolchainSDK)
25842584
}
25852585

25862586
$Targets = if ($Build) {

0 commit comments

Comments
 (0)