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") { |