Enable V8 deprecation warnings for native modules

It will be helpful for native module developers to be aware of any
deprecated apis they are using so that they can update before their
modules break completely. Module developers can override this option
in their binding.gyp if they do not want to see these warnings.

PR-URL: https://github.com/nodejs/node-gyp/pull/920
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Matt Loring 2016-05-07 13:23:43 +02:00 committed by Ben Noordhuis
parent 7f1c1b960c
commit 15fd56be3d

View file

@ -11,7 +11,9 @@
'<(node_root_dir)/deps/v8/include' '<(node_root_dir)/deps/v8/include'
], ],
'defines': [ 'defines': [
'NODE_GYP_MODULE_NAME=>(_target_name)' 'NODE_GYP_MODULE_NAME=>(_target_name)',
# Warn when using deprecated V8 APIs.
'V8_DEPRECATION_WARNINGS=1'
], ],
'target_conditions': [ 'target_conditions': [