fix --debug for glibc pedantic mode
authorEvan Martin <martine@danga.com>
Tue, 4 Sep 2012 22:21:52 +0000 (18:21 -0400)
committerEvan Martin <martine@danga.com>
Tue, 4 Sep 2012 22:21:52 +0000 (18:21 -0400)
configure.py

index bd50e67..69e00d5 100755 (executable)
@@ -138,6 +138,7 @@ else:
               '-DNINJA_PYTHON="%s"' % options.with_python]
     if options.debug:
         cflags += ['-D_GLIBCXX_DEBUG', '-D_GLIBCXX_DEBUG_PEDANTIC']
+        cflags.remove('-fno-rtti')  # Needed for above pedanticness.
     else:
         cflags += ['-O2', '-DNDEBUG']
     if 'clang' in os.path.basename(CXX):