-fvisibility-inlines-hidden is a c++ only option.

Thanks to Peter Collingbourne for noticing it.

llvm-svn: 148913
This commit is contained in:
Rafael Espindola 2012-01-25 03:39:26 +00:00
parent 6c421ea484
commit f47efbc07d
1 changed files with 0 additions and 1 deletions

View File

@ -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()