summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-04-06 14:22:45 -0400
committerRefael Ackermann <refack@gmail.com>2019-04-12 14:12:40 -0400
commit25df3c10f4a54d04e0391d6b9673059f6a7918bd (patch)
tree0121301f5a77d3e833f728544c55e2f4f3c41988 /node.gyp
parent7b854959e79a1ae4cb325123ba118b83a619aaea (diff)
downloadandroid-node-v8-25df3c10f4a54d04e0391d6b9673059f6a7918bd.tar.gz
android-node-v8-25df3c10f4a54d04e0391d6b9673059f6a7918bd.tar.bz2
android-node-v8-25df3c10f4a54d04e0391d6b9673059f6a7918bd.zip
build,win: put all compilation artifacts into `out`
* Add symlink from Release to out\Release for backward compat PR-URL: https://github.com/nodejs/node/pull/27149 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp25
1 files changed, 25 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 2ad76020f5..9d6d0dd7cb 100644
--- a/node.gyp
+++ b/node.gyp
@@ -251,6 +251,31 @@
],
},
+ 'target_defaults': {
+ # Putting these explicitly here so not to depend on `common.gypi`.
+ # `common.gypi` need to be more general because it is used to build userland native addons.
+ # Refs: https://github.com/nodejs/node-gyp/issues/1118
+ 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
+ 'xcode_settings': {
+ 'WARNING_CFLAGS': [
+ '-Wall',
+ '-Wendif-labels',
+ '-W',
+ '-Wno-unused-parameter',
+ '-Werror=undefined-inline',
+ ],
+ },
+
+ # Relevant only for x86.
+ # Refs: https://github.com/nodejs/node/pull/25852
+ # Refs: https://docs.microsoft.com/en-us/cpp/build/reference/safeseh-image-has-safe-exception-handlers
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'ImageHasSafeExceptionHandlers': 'false',
+ },
+ },
+ },
+
'targets': [
{
'target_name': '<(node_core_target_name)',