forked from OSchip/llvm-project
[CMake] Don't pass -fPIC when compiling the darwin builtins
This change makes CMake match autoconf. llvm-svn: 252547
This commit is contained in:
parent
ec353d3fc6
commit
a9437f5135
|
@ -264,7 +264,7 @@ macro(darwin_add_builtin_libraries)
|
|||
set(CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE} -O3)
|
||||
endif()
|
||||
|
||||
set(CMAKE_C_FLAGS "-fPIC -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer")
|
||||
set(CMAKE_C_FLAGS "-fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer")
|
||||
set(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS})
|
||||
set(CMAKE_ASM_FLAGS ${CMAKE_C_FLAGS})
|
||||
|
||||
|
|
Loading…
Reference in New Issue