Explicitly pass -DGTEST_HAS_RTTI to fix building ninja_test with clang.

This commit is contained in:
Nico Weber 2012-04-30 08:40:34 -07:00
parent ada42e5eee
commit 3e3abfe97f

View File

@ -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: