diff options
author | Nico Weber <thakis@chromium.org> | 2012-04-30 15:40:34 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2012-04-30 15:40:34 (GMT) |
commit | 3e3abfe97f4c7cdb863e5c45dc3c7d0df6299871 (patch) | |
tree | 76562d67ec0f64485bd0fd31c696af852a0662ba | |
parent | ada42e5eee8d35c359baa828c9403fa406c1db8b (diff) | |
download | Ninja-3e3abfe97f4c7cdb863e5c45dc3c7d0df6299871.zip Ninja-3e3abfe97f4c7cdb863e5c45dc3c7d0df6299871.tar.gz Ninja-3e3abfe97f4c7cdb863e5c45dc3c7d0df6299871.tar.bz2 |
Explicitly pass -DGTEST_HAS_RTTI to fix building ninja_test with clang.
-rwxr-xr-x | configure.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.py b/configure.py index 3ca706c..dc727e8 100755 --- a/configure.py +++ b/configure.py @@ -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: |