Skip to content

Commit 0c7fbc7

Browse files
committed
Cleanup.
1 parent 67d7108 commit 0c7fbc7

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
@@ -929,7 +929,6 @@ function Fetch-Dependencies {
929929

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

934933
# NOTE: Add a workaround for the main snapshots that inadvertently used the
935934
# wrong version when they were built. This allows use of the nightly snapshot
@@ -942,6 +941,8 @@ function Get-PinnedToolchainToolsDir() {
942941
}
943942
}
944943

944+
$VariantToolchainPath = [IO.Path]::Combine($ToolchainsRoot, "$(Get-PinnedToolchainVersion)+$PinnedToolchainVariant", "usr", "bin")
945+
945946
if (Test-Path $VariantToolchainPath) {
946947
return $VariantToolchainPath
947948
}

0 commit comments

Comments
 (0)