[llvm] 0c4a75f - [CMake] Remove the LLD LTO check for Darwin

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 30 14:00:41 PDT 2021


Author: Petr Hosek
Date: 2021-09-30T14:00:31-07:00
New Revision: 0c4a75f193a7eab8aff06e84bb4cd90e2af3c014

URL: https://github.com/llvm/llvm-project/commit/0c4a75f193a7eab8aff06e84bb4cd90e2af3c014
DIFF: https://github.com/llvm/llvm-project/commit/0c4a75f193a7eab8aff06e84bb4cd90e2af3c014.diff

LOG: [CMake] Remove the LLD LTO check for Darwin

LLD now supports LTO on Darwin.

Differential Revision: https://reviews.llvm.org/D110881

Added: 
    

Modified: 
    llvm/cmake/modules/HandleLLVMOptions.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 1d5552de76262..54eebb8d6b454 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -167,9 +167,6 @@ else()
 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()


        


More information about the llvm-commits mailing list