-
Notifications
You must be signed in to change notification settings - Fork 50
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
Can't compile for Apple Silicon ARM64 #145
Comments
It works for me building node-pty. Note that you'll need the MacOSX11.0.sdk that comes with Xcode 12.2. |
yes of course I have Xcode 12.2, but how did you compile it? I just get:
|
I'm just using the commands you posted. |
ah seems there was some old std=c++11 in binding.gyp in node-pty (they recently removed it - but it is not published yet) same is also for nodegit - they also have some old c++11 options there |
Solution mentioned at: nwjs/nw.js#7620 (comment) |
Trying to compile the native node modules for Apple Silicon arm64 - fails.
It just doesn't pickup the new arm64 architecture for Darwin.
trying to compile nodegit and node-pty
both fail with similar error:
tried also running directly:
nw-gyp configure --target=0.50.0 --target_arch=arm64
but list afterwrards produces:
as as you can see x64 is still detected and nw-gyp build fails
@rogerwang can you check this please? it is the final peace to move to Apple Silicon M1 with arm.
As the base of NWJS seems to be running fine natively we just need to be able also to compile custom native node modules.
The text was updated successfully, but these errors were encountered: