mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-05 03:46:27 +00:00
[CMake] export_executable_symbols also needs to add -rdynamic to the linker flags on Darwin
Without -rdynamic LLVM built with LTO fails to pass "check" due to loadable modules failing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef9dbc69b5
commit
b856f91ff4
@ -660,6 +660,10 @@ endmacro(add_llvm_executable name)
|
|||||||
function(export_executable_symbols target)
|
function(export_executable_symbols target)
|
||||||
if (NOT MSVC) # MSVC's linker doesn't support exporting all symbols.
|
if (NOT MSVC) # MSVC's linker doesn't support exporting all symbols.
|
||||||
set_target_properties(${target} PROPERTIES ENABLE_EXPORTS 1)
|
set_target_properties(${target} PROPERTIES ENABLE_EXPORTS 1)
|
||||||
|
if (APPLE)
|
||||||
|
set_target_properties(${target} PROPERTIES
|
||||||
|
LINK_FLAGS "-rdynamic")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user