Skip to content

Fix macOS Intel compatibility: respect npm_config_arch#13375

Merged
jmcphers merged 1 commit into
mainfrom
bugfix/macos-on-intel
May 5, 2026
Merged

Fix macOS Intel compatibility: respect npm_config_arch#13375
jmcphers merged 1 commit into
mainfrom
bugfix/macos-on-intel

Conversation

@jmcphers
Copy link
Copy Markdown
Collaborator

@jmcphers jmcphers commented May 5, 2026

When building for macOS Intel processors, we set npm_config_arch to the intended architecture; since all our build infrastructure is on Apple Silicon, arch() is always arm64, and we rely npm_config_arch to select binaries that are architecture-dependent.

There are a few places where we were still relying on arch(). This was never a problem before because we selected (or created) universal binaries, but now that we don't have a universal build it is vital to respect npm_config_arch when selecting binaries.

Closes #13372
Closes #13369

@jmcphers jmcphers requested a review from melissa-barca May 5, 2026 00:01
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

E2E Tests 🚀
This PR will run tests tagged with: @:critical

readme  valid tags

@jmcphers
Copy link
Copy Markdown
Collaborator Author

jmcphers commented May 5, 2026

Notes for reviewer:

Copy link
Copy Markdown
Contributor

@melissa-barca melissa-barca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this is a bad one. Thanks - lgtm!
I didn't test any of the builds, but I downloaded both binaries and confirmed the correct or universal build of the bootstrapped extensions, pet, ark, and kallichore. I did not check the linux (pet) or windows (ark) builds so it's worth double checking those once we have builds.

@jmcphers jmcphers merged commit 161d1ff into main May 5, 2026
39 of 63 checks passed
@jmcphers jmcphers deleted the bugfix/macos-on-intel branch May 5, 2026 16:39
@github-actions github-actions Bot locked and limited conversation to collaborators May 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Binary air arm64 on x86 MacOS Intel versión. Error on terminal

2 participants