[PATCH] D51804: [CMake] Fix LTO option on Windows

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 7 13:08:49 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL341701: [CMake] Fix LLVM_ENABLE_LTO option on Windows (authored by aganea, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D51804?vs=164458&id=164495#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D51804

Files:
  llvm/trunk/cmake/modules/HandleLLVMOptions.cmake


Index: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
@@ -11,7 +11,7 @@
 include(CheckCCompilerFlag)
 include(CheckCXXCompilerFlag)
 
-if(CMAKE_LINKER MATCHES "lld-link.exe" OR (WIN32 AND LLVM_USE_LINKER STREQUAL "lld"))
+if(CMAKE_LINKER MATCHES "lld-link\.exe" OR (WIN32 AND LLVM_USE_LINKER STREQUAL "lld") OR LLVM_ENABLE_LLD)
   set(LINKER_IS_LLD_LINK TRUE)
 else()
   set(LINKER_IS_LLD_LINK FALSE)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51804.164495.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180907/24c01fd7/attachment.bin>


More information about the llvm-commits mailing list