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 | ab84a7bf732b96e555b1e5243bec2fec4426a529 (patch) | |
tree | e2f75d7863327ecd4cff4f4e8a47ced9d49fd117 /llvm/cmake/modules/LLVMProcessSources.cmake | |
parent | 8f971c27fb5212c3ecb6ce23ce813970eb592d5e (diff) | |
download | bcm5719-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/cmake/modules/LLVMProcessSources.cmake')
-rw-r--r-- | llvm/cmake/modules/LLVMProcessSources.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/cmake/modules/LLVMProcessSources.cmake b/llvm/cmake/modules/LLVMProcessSources.cmake index 270292ad3b8..641f1b33e1d 100644 --- a/llvm/cmake/modules/LLVMProcessSources.cmake +++ b/llvm/cmake/modules/LLVMProcessSources.cmake @@ -56,7 +56,7 @@ function(llvm_process_sources OUT_VAR) # Set common compiler options: if( NOT LLVM_REQUIRES_EH ) - if( CMAKE_COMPILER_IS_GNUCXX ) + if( LLVM_COMPILER_IS_GCC_COMPATIBLE ) add_definitions( -fno-exceptions ) elseif( MSVC ) llvm_replace_compiler_option(CMAKE_CXX_FLAGS "/EHsc" "/EHs-c-") @@ -64,7 +64,7 @@ function(llvm_process_sources OUT_VAR) endif() endif() if( NOT LLVM_REQUIRES_RTTI ) - 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-") |