Skip to content

Commit 1654522

Browse files
committed
Cleanup.
1 parent e5759f7 commit 1654522

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,6 @@ function Fetch-Dependencies {
946946

947947
function Get-PinnedToolchainToolsDir() {
948948
$ToolchainsRoot = [IO.Path]::Combine("$BinaryCache\toolchains", "$PinnedToolchain", "LocalApp", "Programs", "Swift", "Toolchains")
949-
$VariantToolchainPath = [IO.Path]::Combine($ToolchainsRoot, "$(Get-PinnedToolchainVersion)+$PinnedToolchainVariant", "usr", "bin")
950949

951950
# NOTE: Add a workaround for the main snapshots that inadvertently used the
952951
# wrong version when they were built. This allows use of the nightly snapshot
@@ -959,6 +958,8 @@ function Get-PinnedToolchainToolsDir() {
959958
}
960959
}
961960

961+
$VariantToolchainPath = [IO.Path]::Combine($ToolchainsRoot, "$(Get-PinnedToolchainVersion)+$PinnedToolchainVariant", "usr", "bin")
962+
962963
if (Test-Path $VariantToolchainPath) {
963964
return $VariantToolchainPath
964965
}

0 commit comments

Comments
 (0)