diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-05-11 13:53:08 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-05-11 13:53:08 +0000 |
commit | 104e99256d951674faadd865ed44ec698ede31ea (patch) | |
tree | c19fd8882ddd16cf9fd9cee988cc20199104ace0 /unittests/CMakeLists.txt | |
parent | 4301222525b565028850030835b8db9ce6d153db (diff) |
Handle gcc-compatible compilers (such as clang) the same way we handle
gcc.
Fixes PR9886.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/CMakeLists.txt')
-rw-r--r-- | unittests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index da4a6524bd..fcf6109a53 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -20,7 +20,7 @@ set_target_properties(UnitTests PROPERTIES FOLDER "Tests") include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include) add_definitions(-DGTEST_HAS_RTTI=0) -if( CMAKE_COMPILER_IS_GNUCXX ) +if( LLVM_COMPILER_IS_GCC_COMPATIBLE ) llvm_replace_compiler_option(CMAKE_CXX_FLAGS "-frtti" "-fno-rtti") elseif( MSVC ) llvm_replace_compiler_option(CMAKE_CXX_FLAGS "/GR" "/GR-") |