Skip to content

Commit 63db342

Browse files
authored
Merge pull request #81048 from compnerd/build-host-build
utils: correct the host that we reference for the tools
2 parents c84493e + d3a141c commit 63db342

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/build.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -1535,9 +1535,9 @@ function Build-SPMProject {
15351535
$Stopwatch = [Diagnostics.Stopwatch]::StartNew()
15361536

15371537
Invoke-IsolatingEnvVars {
1538-
$RuntimeInstallRoot = [IO.Path]::Combine((Get-InstallDir $HostPlatform), "Runtimes", $ProductVersion)
1538+
$RuntimeInstallRoot = [IO.Path]::Combine((Get-InstallDir $BuildPlatform), "Runtimes", $ProductVersion)
15391539

1540-
$env:Path = "$RuntimeInstallRoot\usr\bin;$($HostPlatform.ToolchainInstallRoot)\usr\bin;${env:Path}"
1540+
$env:Path = "$RuntimeInstallRoot\usr\bin;$($BuildPlatform.ToolchainInstallRoot)\usr\bin;${env:Path}"
15411541
$env:SDKROOT = (Get-SwiftSDK Windows)
15421542
$env:SWIFTCI_USE_LOCAL_DEPS = "1"
15431543

@@ -1573,7 +1573,7 @@ function Build-SPMProject {
15731573
}
15741574
}
15751575

1576-
Invoke-Program "$($HostPlatform.ToolchainInstallRoot)\usr\bin\swift.exe" $ActionName @Arguments @AdditionalArguments
1576+
Invoke-Program "$($BuildPlatform.ToolchainInstallRoot)\usr\bin\swift.exe" $ActionName @Arguments @AdditionalArguments
15771577
}
15781578

15791579
if (-not $ToBatch) {

0 commit comments

Comments
 (0)