summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/CMakeLists.txt
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-05-11 13:53:08 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-05-11 13:53:08 +0000
commitab84a7bf732b96e555b1e5243bec2fec4426a529 (patch)
treee2f75d7863327ecd4cff4f4e8a47ced9d49fd117 /llvm/unittests/CMakeLists.txt
parent8f971c27fb5212c3ecb6ce23ce813970eb592d5e (diff)
downloadbcm5719-llvm-ab84a7bf732b96e555b1e5243bec2fec4426a529.tar.gz
bcm5719-llvm-ab84a7bf732b96e555b1e5243bec2fec4426a529.zip
Handle gcc-compatible compilers (such as clang) the same way we handle
gcc. Fixes PR9886. llvm-svn: 131181
Diffstat (limited to 'llvm/unittests/CMakeLists.txt')
-rw-r--r--llvm/unittests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/CMakeLists.txt b/llvm/unittests/CMakeLists.txt
index da4a6524bd9..fcf6109a53a 100644
--- a/llvm/unittests/CMakeLists.txt
+++ b/llvm/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-")
OpenPOWER on IntegriCloud