Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1842)

Unified Diff: third_party/WebKit/Source/wtf/BUILD.gn

Issue 1535633002: Disable Blink assertions on Chromecast device builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/BUILD.gn
diff --git a/third_party/WebKit/Source/wtf/BUILD.gn b/third_party/WebKit/Source/wtf/BUILD.gn
index 5db6483ad7b9d821a0b5f3b3fd338a72ae725fc8..38a73d6994e61233b5d9e5350c549072a9aaee6d 100644
--- a/third_party/WebKit/Source/wtf/BUILD.gn
+++ b/third_party/WebKit/Source/wtf/BUILD.gn
@@ -4,6 +4,11 @@
import("//testing/test.gni")
+declare_args() {
+ # Forces assertions to be disabled.
+ disable_wtf_assertions = false
+}
+
# The list of files is kept in the .gypi.
gypi_values = exec_script("//build/gypi_to_gn.py",
[ rebase_path("wtf.gypi") ],
@@ -13,6 +18,8 @@ gypi_values = exec_script("//build/gypi_to_gn.py",
visibility = [ "//third_party/WebKit/*" ]
config("wtf_config") {
+ defines = []
+
if (is_win) {
defines = [
slan 2015/12/17 02:44:12 This needs to be defines += or GN will yell at you
"__STD_C",
@@ -38,6 +45,10 @@ config("wtf_config") {
cflags += [ "/wd4291" ]
}
}
+
+ if (disable_wtf_assertions) {
+ defines += [ "ENABLE_ASSERT=0" ]
slan 2015/12/17 02:44:12 Any target that has this macro in *.h files should
+ }
}
component("wtf") {
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698