From 5d7d63f0ee2ed690ddacd6cafee134a672affc7c Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Tue, 3 Dec 2024 14:40:24 -0800 Subject: [PATCH] Fix python arch on the windows arm64 CI https://ci-external.swift.org/job/swift-main-windows-toolchain-arm64/777/consoleText ``` Error: Program 'python.exe' failed to run: The specified executable is not a valid application for this OS platform.At C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain-arm64\swift\utils\build.ps1:545 char:7 + & $Executable @Args | Out-Null + ~~~~~~~~~~~~~~~~~~~. ``` --- utils/build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/build.ps1 b/utils/build.ps1 index 9fadd35dec006..d7d586f6b63c9 100644 --- a/utils/build.ps1 +++ b/utils/build.ps1 @@ -351,7 +351,7 @@ function Get-BisonExecutable { } function Get-PythonExecutable { - return Join-Path -Path $BinaryCache -ChildPath "Python$($HostArch.CMakeName)-$PythonVersion\tools\python.exe" + return Join-Path -Path $BinaryCache -ChildPath "Python$($BuildArch.CMakeName)-$PythonVersion\tools\python.exe" } function Get-InstallDir($Arch) {