1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

-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 9c48741bbe
commit e3e205900c

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