Skip to content

Commit 7ba4498

Browse files
authored
Merge pull request #78249 from hjyamauchi/nativearm64
Fix the runtime and the SDK paths for the swift build compiler case
2 parents 95ae8d1 + 4a98e37 commit 7ba4498

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
@@ -1201,7 +1201,7 @@ function Build-CMakeProject {
12011201
}
12021202

12031203
if ($UseBuiltCompilers.Contains("Swift")) {
1204-
$env:Path = "$($BuildArch.SDKInstallRoot)\usr\bin;$(Get-CMarkBinaryCache $Arch)\src;$($BuildArch.ToolchainInstallRoot)\usr\bin;${env:Path}"
1204+
$env:Path = "$($BuildArch.SDKInstallRoot)\usr\bin;$(Get-CMarkBinaryCache $BuildArch)\src;$($BuildArch.ToolchainInstallRoot)\usr\bin;$(Get-PinnedToolchainRuntime);${env:Path}"
12051205
} elseif ($UsePinnedCompilers.Contains("Swift")) {
12061206
$env:Path = "$(Get-PinnedToolchainRuntime);${env:Path}"
12071207
}
@@ -1969,7 +1969,7 @@ function Build-FoundationMacros() {
19691969

19701970
$SwiftSDK = $null
19711971
if ($Build) {
1972-
$SwiftSDK = $BuildArch.SDKInstallRoot
1972+
$SwiftSDK = $(Get-PinnedToolchainSDK)
19731973
}
19741974

19751975
$InstallDir = $null
@@ -2621,7 +2621,7 @@ function Build-TestingMacros() {
26212621

26222622
$SwiftSDK = $null
26232623
if ($Build) {
2624-
$SwiftSDK = $BuildArch.SDKInstallRoot
2624+
$SwiftSDK = $(Get-PinnedToolchainSDK)
26252625
}
26262626

26272627
$Targets = if ($Build) {

0 commit comments

Comments
 (0)