nodejs / node-gyp

Node.js native addon build tool
MIT License
9.95k stars 1.8k forks source link

Compiling on x64 for arm64 #3045

Open dakhnod opened 4 months ago

dakhnod commented 4 months ago

Is there a list available of possible values for the --arch option?

I am trying to compile for arm64 and cannot seem to find the right key for that architecture...

I am compiling on x64, but need to compile for a Raspberry Pi.

I tried this, but it doesn't work: node-gyp clean configure build --arch=arm

The only values that do something for --arch are 'ia32', everything else gets compiled to x86-64.

ir-map commented 2 weeks ago

https://nodejs.org/api/os.html#osarch