-
Notifications
You must be signed in to change notification settings - Fork 175
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
Cross-arch rebuild #378
Comments
Cross compilation support is not currently supported, as node-gyp doesn't currently support it. If you need this functionality, please add it to node-gyp first. |
Actually, while they claim it is not supported, after a while of experimenting, I got it working and successfully cross-compiled a bunch of native modules on WSL (v1) x64 by installing |
I'd much rather have this sort of functionality inside |
Alright, I'll try to merge with them |
I am using this library via electron-forge, but also tried it standalone, for armv7l cross-platform rebuild of native modules. Either way (electron-forge with armv7 arch configuration running on WSL, or through manual CLI execution with
-a armv7l
), the resulting.node
of the native modules that are being logged as rebuild targets, are compiled for x64, asreadelf -a
shows (Class: ELF64), both in the original node_modules, or in the copied .asar archive. Rebuild finishes without any errors. Am I doing something wrong or is cross-platform, cross-arch compilation not really supported?The text was updated successfully, but these errors were encountered: