Explicitly pass -DGTEST_HAS_RTTI to fix building ninja_test with clang.
authorNico Weber <thakis@chromium.org>
Mon, 30 Apr 2012 15:40:34 +0000 (08:40 -0700)
committerNico Weber <thakis@chromium.org>
Mon, 30 Apr 2012 15:40:34 +0000 (08:40 -0700)
configure.py

index 3ca706c..dc727e8 100755 (executable)
@@ -271,7 +271,8 @@ if options.with_gtest:
                     os.path.join(path, 'src/gtest_main.cc'),
                     variables=[('cflags', gtest_cflags)])
 
-    test_cflags = cflags + ['-I%s' % os.path.join(path, 'include')]
+    test_cflags = cflags + ['-DGTEST_HAS_RTTI=0',
+                            '-I%s' % os.path.join(path, 'include')]
 elif platform == 'windows':
     test_libs.extend(['gtest_main.lib', 'gtest.lib'])
 else: