| Index: build/toolchain.gypi
|
| diff --git a/build/toolchain.gypi b/build/toolchain.gypi
|
| index e1903f300fd757090f123a16f7456880b9779748..de41fe0d00189e2a20576c63004e21a6ad14a9d8 100644
|
| --- a/build/toolchain.gypi
|
| +++ b/build/toolchain.gypi
|
| @@ -436,6 +436,7 @@
|
| 'V8_ENABLE_CHECKS',
|
| 'OBJECT_PRINT',
|
| 'VERIFY_HEAP',
|
| + 'DEBUG'
|
| ],
|
| 'msvs_settings': {
|
| 'VCCLCompilerTool': {
|
| @@ -503,15 +504,6 @@
|
| },
|
| },
|
| 'conditions': [
|
| - ['v8_optimized_debug==2', {
|
| - 'defines': [
|
| - 'NDEBUG',
|
| - ],
|
| - }, {
|
| - 'defines': [
|
| - 'DEBUG',
|
| - ],
|
| - }],
|
| ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
|
| 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
|
| '-Wnon-virtual-dtor', '-Woverloaded-virtual',
|
| @@ -553,6 +545,9 @@
|
| '-fdata-sections',
|
| '-ffunction-sections',
|
| ],
|
| + 'defines': [
|
| + 'OPTIMIZED_DEBUG'
|
| + ],
|
| 'conditions': [
|
| # TODO(crbug.com/272548): Avoid -O3 in NaCl
|
| ['nacl_target_arch=="none"', {
|
|
|