From f2663fecb894d447dfc9b4b04b4477eca5b557b7 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 13 Jan 2016 19:01:22 -0800 Subject: Merge to XFA: Use _GLIBCXX_DEBUG in standalone Debug builds on Linux. TBR=ochang@chromium.org Review URL: https://codereview.chromium.org/1588643003 . (cherry picked from commit 783709f76baf7893b7334209fe89d947acd6369d) Review URL: https://codereview.chromium.org/1584713004 . --- build/standalone.gypi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/standalone.gypi b/build/standalone.gypi index 536c255b55..72975bc20e 100644 --- a/build/standalone.gypi +++ b/build/standalone.gypi @@ -100,6 +100,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