enable libstd++ debugging in debug mode

This commit is contained in:
Evan Martin 2012-01-13 09:02:19 -08:00
parent 490e7d902c
commit dc759f9ae2

View File

@ -116,7 +116,9 @@ else:
'-fno-exceptions', '-fno-exceptions',
'-fvisibility=hidden', '-pipe', '-fvisibility=hidden', '-pipe',
"'-DNINJA_PYTHON=\"%s\"'" % (options.with_python,)] "'-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'] cflags += ['-O2', '-DNDEBUG']
ldflags = ['-L$builddir'] ldflags = ['-L$builddir']
libs = [] libs = []