diff options
Diffstat (limited to 'scripts/utils')
| -rw-r--r-- | scripts/utils/host | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/utils/host b/scripts/utils/host index 28301e636d..1d81b32464 100644 --- a/scripts/utils/host +++ b/scripts/utils/host @@ -16,6 +16,11 @@ case "$(uname -s)" in HOST="${arch}-apple-darwin" ;; MINGW*|MSYS_NT*) - HOST="x86_64-pc-windows-msvc" + arch="$(powershell -Command "(Get-CimInstance Win32_OperatingSystem).OSArchitecture")" + if [[ $arch == "ARM 64"* ]]; then + HOST="aarch64-pc-windows-msvc" + else + HOST="x86_64-pc-windows-msvc" + fi ;; esac |
