From dc759f9ae232fd0a3087289e4c859aa008f00d8a Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Fri, 13 Jan 2012 09:02:19 -0800 Subject: [PATCH] enable libstd++ debugging in debug mode --- configure.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.py b/configure.py index cce4197..eb97547 100755 --- a/configure.py +++ b/configure.py @@ -116,7 +116,9 @@ else: '-fno-exceptions', '-fvisibility=hidden', '-pipe', "'-DNINJA_PYTHON=\"%s\"'" % (options.with_python,)] - if not options.debug: + if options.debug: + cflags += ['-D_GLIBCXX_DEBUG', '-D_GLIBCXX_DEBUG_PEDANTIC'] + else: cflags += ['-O2', '-DNDEBUG'] ldflags = ['-L$builddir'] libs = []