Index: build/config/BUILD.gn |
diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn |
index b6d0b71fa0edeaa9b20b0742821c8be9732e6ff8..58893181deb5aa0bd526020d64d1546d6cda0e6d 100644 |
--- a/build/config/BUILD.gn |
+++ b/build/config/BUILD.gn |
@@ -92,6 +92,14 @@ config("feature_flags") { |
if (use_browser_spellchecker) { |
defines += [ "USE_BROWSER_SPELLCHECKER=1" ] |
} |
+ |
+ # In Windows official builds, this will cause DCHECKs to |
+ # dump-without-crashing. See crbug.com/596231. |
+ if (is_official_build && is_win) { |
+ dcheck_always_on = true |
+ defines += [ "DCHECK_IS_DUMP_WITHOUT_CRASH=1" ] |
+ } |
+ |
if (dcheck_always_on) { |
defines += [ "DCHECK_ALWAYS_ON=1" ] |
} |