mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
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:
parent
7f1c1b960c
commit
15fd56be3d
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@
|
|||
'<(node_root_dir)/deps/v8/include'
|
||||
],
|
||||
'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': [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue