diff options
author | Richard Lau <riclau@uk.ibm.com> | 2020-05-11 19:42:52 +0100 |
---|---|---|
committer | Richard Lau <riclau@uk.ibm.com> | 2020-05-13 12:07:09 -0400 |
commit | 3aa515210afaefcf99b3f4ad49239fc5738ef58d (patch) | |
tree | 442e3bb1a84dcae6a1291cf664178c84511a80bc /node.gyp | |
parent | 365ddb35036e7e140f5f07962c47bf1fd5f040b7 (diff) | |
download | ios-node-v8-3aa515210afaefcf99b3f4ad49239fc5738ef58d.tar.gz ios-node-v8-3aa515210afaefcf99b3f4ad49239fc5738ef58d.tar.bz2 ios-node-v8-3aa515210afaefcf99b3f4ad49239fc5738ef58d.zip |
build: fix `--error-on-warn` for macOS
XCode builds on macOS do not appear to inherit the `cflags` setting.
Signed-off-by: Richard Lau <riclau@uk.ibm.com>
PR-URL: https://github.com/nodejs/node/pull/33357
Refs: https://github.com/nodejs/node/pull/32685
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -378,6 +378,9 @@ 'conditions': [ [ 'error_on_warn=="true"', { 'cflags': ['-Werror'], + 'xcode_settings': { + 'WARNING_CFLAGS': [ '-Werror' ], + }, }], [ 'node_intermediate_lib_type=="static_library" and ' 'node_shared=="true" and OS=="aix"', { @@ -757,6 +760,9 @@ 'conditions': [ [ 'error_on_warn=="true"', { 'cflags': ['-Werror'], + 'xcode_settings': { + 'WARNING_CFLAGS': [ '-Werror' ], + }, }], [ 'node_builtin_modules_path!=""', { 'defines': [ 'NODE_BUILTIN_MODULES_PATH="<(node_builtin_modules_path)"' ] |