Skip to content

Commit 639a2c3

Browse files
authored
Merge pull request #73733 from compnerd/paths
utils: tweak the path before using a Swift toolchain
2 parents c0720d5 + eb6cd28 commit 639a2c3

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
@@ -866,7 +866,9 @@ function Build-CMakeProject {
866866
}
867867

868868
if ($UseBuiltCompilers.Contains("Swift")) {
869-
$env:Path = "$($HostArch.SDKInstallRoot)\usr\bin;$($HostArch.ToolchainInstallRoot)\usr\bin;${env:Path}"
869+
$env:Path = "$($HostArch.SDKInstallRoot)\usr\bin;$($HostArch.BinaryCache)\cmark-gfm-0.29.0.gfm.13\src;$($HostArch.ToolchainInstallRoot)\usr\bin;${env:Path}"
870+
} elseif ($UsePinnedCompilers.Contains("Swift")) {
871+
$env:Path = "$(Get-PinnedToolchainRuntime);${env:Path}"
870872
}
871873
Invoke-Program cmake.exe @cmakeGenerateArgs
872874

@@ -1107,8 +1109,6 @@ function Build-Compilers() {
11071109
}
11081110
}
11091111

1110-
$env:Path = "$(Get-PinnedToolchainRuntime);${env:Path}"
1111-
11121112
Build-CMakeProject `
11131113
-Src $SourceCache\llvm-project\llvm `
11141114
-Bin $CompilersBinaryCache `

0 commit comments

Comments
 (0)