forked from OSchip/llvm-project
-fvisibility-inlines-hidden is a c++ only option.
Thanks to Peter Collingbourne for noticing it. llvm-svn: 148913
This commit is contained in:
parent
6c421ea484
commit
f47efbc07d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue