mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
Add ARM64 to MSBuild /Platform logic
PR-URL: https://github.com/nodejs/node-gyp/pull/1655 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: João Reis <reis@janeasystems.com>
This commit is contained in:
parent
a6e0a6c7ed
commit
721dc7d314
1 changed files with 5 additions and 1 deletions
|
@ -200,9 +200,13 @@ function build (gyp, argv, callback) {
|
|||
|
||||
// Specify the build type, Release by default
|
||||
if (win) {
|
||||
// Convert .gypi config target_arch to MSBuild /Platform
|
||||
// Since there are many ways to state '32-bit Intel', default to it.
|
||||
// N.B. msbuild's Condition string equality tests are case-insensitive.
|
||||
var archLower = arch.toLowerCase()
|
||||
var p = archLower === 'x64' ? 'x64' :
|
||||
(archLower === 'arm' ? 'ARM' : 'Win32')
|
||||
(archLower === 'arm' ? 'ARM' :
|
||||
(archLower === 'arm64' ? 'ARM64' : 'Win32'))
|
||||
argv.push('/p:Configuration=' + buildType + ';Platform=' + p)
|
||||
if (jobs) {
|
||||
var j = parseInt(jobs, 10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue