[PATCH] D110881: [CMake] Remove the LLD LTO check for Darwin
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 13:43:52 PDT 2021
phosek created this revision.
phosek added a reviewer: smeenai.
Herald added subscribers: inglorion, mgorny.
phosek requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
LLD now supports LTO on Darwin.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110881
Files:
llvm/cmake/modules/HandleLLVMOptions.cmake
Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -167,9 +167,6 @@
endif()
if(APPLE)
- if(LLVM_ENABLE_LLD AND LLVM_ENABLE_LTO)
- message(FATAL_ERROR "lld does not support LTO on Darwin")
- endif()
# Darwin-specific linker flags for loadable modules.
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-flat_namespace -Wl,-undefined -Wl,suppress")
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110881.376348.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210930/567e637c/attachment.bin>
More information about the llvm-commits
mailing list