summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-01-13 18:49:07 -0800
committerLei Zhang <thestig@chromium.org>2016-01-13 18:49:07 -0800
commit783709f76baf7893b7334209fe89d947acd6369d (patch)
treebef30c025b15ee83da4adc397ea5a70ea2f88903
parentcae57daaa0f7ed4c92e22c4e7ef30392393d1128 (diff)
downloadpdfium-783709f76baf7893b7334209fe89d947acd6369d.tar.xz
Use _GLIBCXX_DEBUG in standalone Debug builds on Linux.
R=ochang@chromium.org Review URL: https://codereview.chromium.org/1588643003 .
-rw-r--r--build/standalone.gypi6
1 files changed, 6 insertions, 0 deletions
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': [