This commit is contained in:
Jozef Steinhübl 2026-01-05 00:16:35 +01:00
parent a082f44b39
commit 83e822ab4e
No known key found for this signature in database
GPG Key ID: 8D9A5E4549AA84FD

View File

@ -43,7 +43,10 @@ export function getPlatform(): string {
}
export function getArchitecture(os: string, arch: string): string {
if (os === "windows" && (arch === "aarch64" || arch === "arm64")) {
if (
(os === "win32" || os === "windows") &&
(arch === "aarch64" || arch === "arm64")
) {
warning(
[
"⚠️ Bun does not provide native arm64 builds for Windows.",
@ -62,7 +65,10 @@ export function getArchitecture(os: string, arch: string): string {
export function getAvx2(os: string, arch: string, avx2?: boolean): boolean {
// Temporary workaround for absence of arm64 builds on Windows (#130)
if (os === "win32" && (arch === "aarch64" || arch === "arm64")) {
if (
(os === "win32" || os === "windows") &&
(arch === "aarch64" || arch === "arm64")
) {
return false;
}