mirror of
https://github.com/reactos/ninja.git
synced 2025-03-04 09:18:44 +00:00
Explicitly pass -DGTEST_HAS_RTTI to fix building ninja_test with clang.
This commit is contained in:
parent
ada42e5eee
commit
3e3abfe97f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user