-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Naming of fat binaries for M1 (Apple silicon) #52
Comments
Options:
|
@vweevers would copying it work? it's zipped anyway. |
I didn't try producing a fat binary yet but I assume it will be bigger than a single-arch binary (which on |
I'm fine with option 1. |
yea 1) or 2) is fine with me as well. |
I think option 1 is better. |
Let's go for option 1 then. I wrote that "It'll be up to the addon author to setup their CI to produce this folder name" but perhaps prebuildify can do it. Somewhat tricky because although we currently take a custom In addition, we do that forwarding via Line 190 in 4f71944
Which I think is no longer supported in On the other hand, if I'm right that |
I checked, The node-gyp So I propose we replace |
Technically it supports both but --arch is the documented option, that has more logic associated with it, while --target-arch is merely forwarded to gyp. In addition, handle multi-arch values which on our end dictate the output folder but are not understood by node-gyp. Ref #52
Technically it supports both but --arch is the documented option, that has more logic associated with it, while --target-arch is merely forwarded to gyp. In addition, handle multi-arch values which on our end dictate the output folder but are not understood by node-gyp. Ref #52
Done in |
In order to support M1 (Apple silicon), addon authors can build so-called fat binaries, that work on both x86_64 and arm64. This seems like the easiest way to add M1 support. For example fsevents/fsevents#350.
It's at odds with our current folder structure though. What would the
arch
be in e.g.darwin-<arch>/node.napi.node
?The text was updated successfully, but these errors were encountered: