Skip to content

Commit 75a6d10

Browse files
committed
build.ps1: allow querying a specific SDK from the pinned toolchain
This allows us to use a specific SDK from the pinned toolchain image. By enabling this functionality, we can migrate towards a newer snapshot and build the early swift-driver.
1 parent bf2c6e8 commit 75a6d10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,10 +1237,10 @@ function Get-PinnedToolchainToolsDir() {
12371237
"unknown-Asserts-development.xctoolchain", "usr", "bin")
12381238
}
12391239

1240-
function Get-PinnedToolchainSDK() {
1240+
function Get-PinnedToolchainSDK([OS] $OS = $BuildPlatform.OS, [string] $Identifier = $OS.ToString()) {
12411241
return [IO.Path]::Combine("$BinaryCache\", "toolchains", $PinnedToolchain,
12421242
"LocalApp", "Programs", "Swift", "Platforms", (Get-PinnedToolchainVersion),
1243-
"Windows.platform", "Developer", "SDKs", "Windows.sdk")
1243+
"$($OS.ToString()).platform", "Developer", "SDKs", "$Identifier.sdk")
12441244
}
12451245

12461246
function Get-PinnedToolchainRuntime() {

0 commit comments

Comments
 (0)