Index: build/config/BUILD.gn |
diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn |
index 80427f26a087b631031ad3a45bd017547898a4a9..59ccc671fc3849b418da1124ac5db4c1a9623565 100644 |
--- a/build/config/BUILD.gn |
+++ b/build/config/BUILD.gn |
@@ -58,9 +58,18 @@ declare_args() { |
config("feature_flags") { |
# Don't use deprecated V8 APIs anywhere. |
defines = [ "V8_DEPRECATION_WARNINGS" ] |
+ |
if (dcheck_always_on) { |
defines += [ "DCHECK_ALWAYS_ON=1" ] |
} |
+ |
+ # This will cause DCHECKs to dump-without-crashing. See crbug.com/596231. |
+ if (dump_on_first_dcheck) { |
+ assert(is_debug || dcheck_always_on, |
+ "dump_on_first_check requires is_debug, or dcheck_always_on") |
+ defines += [ "DCHECK_IS_DUMP_WITHOUT_CRASH=1" ] |
Wez
2016/12/19 23:57:46
Q: Suggestions on better naming welcome!
|
+ } |
+ |
if (use_udev) { |
# TODO(brettw) should probably be "=1". |
defines += [ "USE_UDEV" ] |