mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 01:56:06 +00:00
Revert "[libc++] Do not force building with -fPIC"
This reverts commit r355764. CMake does not turn -fPIC on for us by default. so this patch breaks standalone builds. The only reason it hasn't broken any bots is because LLVM turns on and specifies '-fPIC' for us. llvm-svn: 355756
This commit is contained in:
parent
0e1586c4fb
commit
9dd9495a35
@ -105,6 +105,10 @@ if (LIBCXXABI_USE_LLVM_UNWINDER)
|
||||
endif()
|
||||
|
||||
# Setup flags.
|
||||
if (NOT WIN32)
|
||||
add_flags_if_supported(-fPIC)
|
||||
endif()
|
||||
|
||||
add_link_flags_if_supported(-nodefaultlibs)
|
||||
|
||||
if (LIBCXX_TARGETING_MSVC)
|
||||
|
Loading…
x
Reference in New Issue
Block a user