mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
build: support apple silicon (arm64 darwin) builds
Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> PR-URL: https://github.com/nodejs/node-gyp/pull/2165
This commit is contained in:
parent
ee6fa7d3bc
commit
f461d56c53
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue