Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index d2bb8d86e4a3ed367b348978aea36c1bf836b83a..9795996d05a8ca4c898752098833ec780876f72e 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1208,6 +1208,9 @@ |
# Turns on the i18n support in V8. |
'v8_enable_i18n_support': 1, |
+ # Don't use deprecated V8 APIs. |
+ 'v8_deprecation_warnings': 1, |
+ |
# Use the chromium skia by default. |
'use_system_skia%': '0', |
@@ -2004,6 +2007,9 @@ |
'ANGLE_DX11', |
], |
'conditions': [ |
+ ['v8_deprecation_warnings==1', { |
+ 'defines': ['V8_DEPRECATION_WARNINGS',], |
+ }], |
['(OS=="mac" or OS=="ios") and asan==1', { |
'dependencies': [ |
'<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', |