mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
gyp: enable MARMASM items only on new VS versions
PR-URL: https://github.com/nodejs/node-gyp/pull/1762 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
parent
0efb8fb34b
commit
a20faedc91
2 changed files with 14 additions and 2 deletions
|
@ -146,6 +146,15 @@ function configure (gyp, argv, callback) {
|
|||
if (vsInfo.sdk) {
|
||||
defaults['msvs_windows_target_platform_version'] = vsInfo.sdk
|
||||
}
|
||||
if (variables.target_arch == 'arm64') {
|
||||
if (vsInfo.versionMajor > 15 ||
|
||||
(vsInfo.versionMajor === 15 && vsInfo.versionMajor >= 9)) {
|
||||
defaults['msvs_enable_marmasm'] = 1
|
||||
} else {
|
||||
log.warn('Compiling ARM64 assembly is only available in\n' +
|
||||
'Visual Studio 2017 version 15.9 and above')
|
||||
}
|
||||
}
|
||||
variables['msbuild_path'] = vsInfo.msBuild
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue