Skip to content

Commit

Permalink
build: support apple silicon (arm64 darwin) builds
Browse files Browse the repository at this point in the history
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
PR-URL: #2165
  • Loading branch information
MarshallOfSound authored and rvagg committed Jul 20, 2020
1 parent ee6fa7d commit f461d56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function configure (gyp, argv, callback) {
variables.target_arch = gyp.opts.arch || process.arch || 'ia32'
if (variables.target_arch === 'arm64') {
defaults.msvs_configuration_platform = 'ARM64'
defaults.xcode_configuration_platform = 'arm64'
}

// set the node development directory
Expand Down

0 comments on commit f461d56

Please sign in to comment.