summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
authorhalliwell <halliwell@chromium.org>2016-01-04 13:05:34 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-04 21:06:44 +0000
commit25419b09eee2221bde1ac0320e29ca32026a1f3e (patch)
tree13b49b67f86bd4ad0d6beda3e189b8a165b27e00 /build/common.gypi
parente86da0ed8b17582a3480953910b2a5a8830076b2 (diff)
downloadchromium_src-25419b09eee2221bde1ac0320e29ca32026a1f3e.zip
chromium_src-25419b09eee2221bde1ac0320e29ca32026a1f3e.tar.gz
chromium_src-25419b09eee2221bde1ac0320e29ca32026a1f3e.tar.bz2
Disable Blink assertions on Chromecast device eng builds
Chromecast device eng builds are release builds with dcheck_always_on to take advantage of DCHECKS. By default this also enables Blink assertions, which add ~20% to our binary size. Recently the eng OTA package has become too large to push to the device, so space savings are required, and the Blink assertions haven't provided a lot of value historically. They are still enabled for buildbots, desktop builds and Android TV. BUG=internal b/26142354 Review URL: https://codereview.chromium.org/1535633002 Cr-Commit-Position: refs/heads/master@{#367363}
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index dd22763..383a514 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3590,6 +3590,11 @@
'NS_BLOCK_ASSERTIONS=1',
],
}],
+ # Force disable blink assertions on Cast device builds (overriding DCHECK_ALWAYS_ON)
+ # Only defined for Release builds (NDEBUG), otherwise blink won't compile.
+ ['chromecast==1 and OS=="linux" and is_cast_desktop_build==0', {
+ 'defines': ['ENABLE_ASSERT=0'],
+ }],
],
},
#