Skip to content

Commit

Permalink
configure: Enable ARM64 single-toolchain build on Windows
Browse files Browse the repository at this point in the history
When target arch is arm64, set_msvs_configuration platfrom in order to
generate proper .sln/.vcxproj files for cross-compiling node modules
to Windows on Arm, 64-bit. To use, run `set npm_config_arch=arm64`
on the command prompt before `npm install`.

PR-URL: #1678
  • Loading branch information
kaadam committed Apr 24, 2019
1 parent 7a71d68 commit c6b37ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ function configure (gyp, argv, callback) {

// set the target_arch variable
variables.target_arch = gyp.opts.arch || process.arch || 'ia32'
if (variables.target_arch == 'arm64') {
defaults['msvs_configuration_platform'] = 'ARM64'
}

// set the node development directory
variables.nodedir = nodeDir
Expand Down

0 comments on commit c6b37ef

Please sign in to comment.