diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-25 03:39:26 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-25 03:39:26 +0000 |
commit | e8e7b29fd9064b4d2f117715bd43f23ac1a549a2 (patch) | |
tree | e4bdcee80d190374f9c68c27b2a4a8310e2819bf | |
parent | 50da3cb0f895c7fdf958c9fb86f6b8f9b9d4321f (diff) |
-fvisibility-inlines-hidden is a c++ only option.
Thanks to Peter Collingbourne for noticing it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148913 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | cmake/modules/HandleLLVMOptions.cmake | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 229127d832..496e8b3f54 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -95,7 +95,6 @@ if( LLVM_ENABLE_PIC ) check_cxx_compiler_flag("-fvisibility-inlines-hidden" SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG) if( SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility-inlines-hidden") endif() endif() endif() |