From 783709f76baf7893b7334209fe89d947acd6369d Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 13 Jan 2016 18:49:07 -0800 Subject: Use _GLIBCXX_DEBUG in standalone Debug builds on Linux. R=ochang@chromium.org Review URL: https://codereview.chromium.org/1588643003 . --- build/standalone.gypi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/standalone.gypi b/build/standalone.gypi index 7dbbe1100e..6db5579484 100644 --- a/build/standalone.gypi +++ b/build/standalone.gypi @@ -99,6 +99,12 @@ 'xcode_settings': { 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 }, + 'conditions': [ + ['OS=="linux"', { + # Enable libstdc++ debugging to help catch problems early. + 'defines': ['_GLIBCXX_DEBUG=1',], + }], + ], }, 'Release': { 'cflags': [ -- cgit v1.2.3