[PATCH] D79749: [CMake][AIX] Add `-bcdtors:mbr` option when building with IBM XL

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 12 10:11:54 PDT 2020


daltenty added inline comments.


================
Comment at: llvm/cmake/modules/HandleLLVMOptions.cmake:202
+    # we can limit the processing for archive members to only those that are otherwise referenced.
+    append("-bcdtors:mbr"
+           CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
----------------
This seems more generally applicable on AIX. Could we promote this out of the XL specific block and just pass it as a general linker option?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79749/new/

https://reviews.llvm.org/D79749





More information about the llvm-commits mailing list