diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-10-17 02:26:16 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-10-17 02:26:16 +0000 |
commit | f0c55a9b9797855a4c488c7a6a97d336a5bafd8e (patch) | |
tree | 6e4ef374b23b14db2199b461e21322b316061515 /utils/unittest | |
parent | d56d61af0190ee8024eb71dd4138ed7861f20adc (diff) |
Build with RTTI and exceptions disabled. Only in GCC for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116682 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest')
-rw-r--r-- | utils/unittest/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/unittest/CMakeLists.txt b/utils/unittest/CMakeLists.txt index 4400b38234..9d678edfd1 100644 --- a/utils/unittest/CMakeLists.txt +++ b/utils/unittest/CMakeLists.txt @@ -24,6 +24,12 @@ if(SUPPORTS_NO_VARIADIC_MACROS_FLAG) add_definitions("-Wno-variadic-macros") endif() +set(LLVM_REQUIRES_RTTI 1) +add_definitions( -DGTEST_HAS_RTTI=0 ) +# libstdc++'s TR1 <tuple> header depends on RTTI and uses C++'0x features not +# supported by Clang, so force googletest to use its own tuple implementation. +add_definitions( -DGTEST_USE_OWN_TR1_TUPLE ) + add_llvm_library(gtest googletest/gtest.cc googletest/gtest-death-test.cc |