diff options
| author | Chris Bieneman <beanz@apple.com> | 2015-11-24 00:58:58 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2015-11-24 00:58:58 +0000 |
| commit | 914742bb80fcb18ceef7d803b067af22623548f0 (patch) | |
| tree | 7daceaa9f096ef6c8b69eb58937216c1f14b42d1 /llvm | |
| parent | bd1e84bc84fe88f4c7cffe1ac5209dcade929c48 (diff) | |
| download | bcm5719-llvm-914742bb80fcb18ceef7d803b067af22623548f0.tar.gz bcm5719-llvm-914742bb80fcb18ceef7d803b067af22623548f0.zip | |
[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.
llvm-svn: 253944
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index bf2a482df35..b5517d0b893 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -660,6 +660,10 @@ endmacro(add_llvm_executable name) function(export_executable_symbols target) if (NOT MSVC) # MSVC's linker doesn't support exporting all symbols. set_target_properties(${target} PROPERTIES ENABLE_EXPORTS 1) + if (APPLE) + set_target_properties(${target} PROPERTIES + LINK_FLAGS "-rdynamic") + endif() endif() endfunction() |

