From cd055331ab210696bc0e7848b64eb78aa82d296d Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Mon, 2 Dec 2013 14:30:59 +0000 Subject: [PATCH] Disable deprecated V8 APIs when building BUG=322505 R=dcarney@chromium.org Review URL: https://codereview.chromium.org/83523002 git-svn-id: http://src.chromium.org/svn/trunk/src/build@238096 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- common.gypi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.gypi b/common.gypi index 025b0753f..c56e910ef 100644 --- a/common.gypi +++ b/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', @@ -2007,6 +2010,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',