summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
authordpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-07 22:09:06 +0000
committerdpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-07 22:09:06 +0000
commit2abbc1afdfe53300f6ee26f5faa6548d7b3b50a2 (patch)
treef951cb2740cfae26cb82541ff871bf2d93e0f76f /build/common.gypi
parenteeedf44230437227a66e852f1c5e1b83f25bede9 (diff)
downloadchromium_src-2abbc1afdfe53300f6ee26f5faa6548d7b3b50a2.zip
chromium_src-2abbc1afdfe53300f6ee26f5faa6548d7b3b50a2.tar.gz
chromium_src-2abbc1afdfe53300f6ee26f5faa6548d7b3b50a2.tar.bz2
Compile v8 like "release" by default in debug builds.
This change switches how we compile v8 by default in Debug builds so that the compiler optimizations are enabled and much of the still enabled to do some level of dcheck-like assertion checking). This gives us a 5x speedup over the debug v8 for running the layout tests, making debug times only 2x slower than release. R=jamesr@chromium.org, jochen@chromium.org BUG=254188 Review URL: https://codereview.chromium.org/21004010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216287 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi15
1 files changed, 11 insertions, 4 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 4b36fdf..72e9ecb7 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -699,7 +699,16 @@
}],
['OS=="win" or OS=="linux"', {
'enable_mdns%' : 1,
- }]
+ }],
+
+ # Turns on compiler optimizations in V8 in Debug build, except
+ # on android_clang, where we're hitting a weird linker error.
+ # TODO(dpranke): http://crbug.com/266155 .
+ ['OS=="android"', {
+ 'v8_optimized_debug': 1,
+ }, {
+ 'v8_optimized_debug': 2,
+ }],
],
# Set this to 1 to enable use of concatenated impulse responses
@@ -854,6 +863,7 @@
'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)',
'enable_mdns%' : '<(enable_mdns)',
+ 'v8_optimized_debug': '<(v8_optimized_debug)',
# Use system nspr instead of the bundled one.
'use_system_nspr%': 0,
@@ -1111,9 +1121,6 @@
# rlz codes for searches but do not use the library.
'enable_rlz%': 0,
- # Turns on compiler optimizations in V8 in Debug build.
- 'v8_optimized_debug': 1,
-
# Turns on the i18n support in V8.
'v8_enable_i18n_support': 1,