Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index ecf711f3c54a2aa734b0f3194b4e056a8cd08458..3086551ed01791466c6a5bb9f75c0ca6e33591f5 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -722,6 +722,15 @@ |
'optimize_jni_generation%': 1, |
'conditions': [ |
+ # In Windows official builds, enable DCHECK as dump-without-crashing. |
+ ['OS=="win" and buildtype=="Official"', { |
+ 'dcheck_always_on%': 1, |
+ 'dcheck_is_dump_without_crash': 1, |
+ }, { |
+ 'dcheck_always_on%': 0, |
+ 'dcheck_is_dump_without_crash': 0, |
+ }], |
+ |
# A flag for POSIX platforms |
['OS=="win"', { |
'os_posix%': 0, |
@@ -1193,6 +1202,7 @@ |
'fastbuild%': '<(fastbuild)', |
'win_z7%': '<(win_z7)', |
'dcheck_always_on%': '<(dcheck_always_on)', |
+ 'dcheck_is_dump_without_crash%': '<(dcheck_is_dump_without_crash)', |
'tracing_like_official_build%': '<(tracing_like_official_build)', |
'fieldtrial_testing_like_official_build%': '<(fieldtrial_testing_like_official_build)', |
'arm_version%': '<(arm_version)', |
@@ -2849,6 +2859,9 @@ |
['dcheck_always_on!=0', { |
'defines': ['DCHECK_ALWAYS_ON=1'], |
}], # dcheck_always_on!=0 |
+ ['dcheck_is_dump_without_crash!=0', { |
+ 'defines': ['DCHECK_IS_DUMP_WITHOUT_CRASH=1'], |
+ }], # dcheck_is_dump_without_crash!=0 |
['tracing_like_official_build!=0', { |
'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], |
}], # tracing_like_official_build!=0 |