From e3e205900c061fd0625736623556f2003ce3aa41 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 25 Jan 2012 03:39:26 +0000 Subject: [PATCH] -fvisibility-inlines-hidden is a c++ only option. Thanks to Peter Collingbourne for noticing it. llvm-svn: 148913 --- cmake/modules/HandleLLVMOptions.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 229127d8320..496e8b3f546 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()