[llvm] [CMake] Make ELF library handling path default for libLLVM (PR #74698)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 00:24:46 PST 2023


================
@@ -60,8 +53,6 @@ if(LLVM_BUILD_LLVM_DYLIB)
       # inside and outside libLLVM.so.
       target_link_options(LLVM PRIVATE LINKER:-Bsymbolic-functions)
     endif()
-  elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
-    set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
   endif()
----------------
MaskRay wrote:

A few lines above we have two checks for MSVC and z/OS. They could be combined into an "else" branch here. Feel free not to do the cleanup though:)

https://github.com/llvm/llvm-project/pull/74698


More information about the llvm-commits mailing list