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

Unified Diff: build/config/BUILD.gn

Issue 2288473002: Implement Dump-on-DCHECK (via a new LogSeverity). (Closed)
Patch Set: Pull the Official Windows build default in, and rebase Created 3 years, 10 months 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 | « base/test/gtest_util.h ('k') | build/config/dcheck_always_on.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/BUILD.gn
diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn
index b9eb2ef50aae60463036b01f372b4d93ee90eaf9..39a9a9991c8d4fcad5fe85dba82ea5912e7102eb 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" ]
+ }
+
if (use_udev) {
# TODO(brettw) should probably be "=1".
defines += [ "USE_UDEV" ]
« no previous file with comments | « base/test/gtest_util.h ('k') | build/config/dcheck_always_on.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698