[PATCH] D112905: detect LLVM_USE_LINKER breaks canadian compilation for mingw-w64 host

cqwrteur via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 31 20:57:21 PDT 2021


expnkx created this revision.
Herald added subscribers: mstorsjo, mgorny.
expnkx requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

I try to canadian-compile clang from linux to windows. this breaks my build. Remove it.


https://reviews.llvm.org/D112905

Files:
  llvm/cmake/modules/HandleLLVMOptions.cmake


Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -291,9 +291,6 @@
   set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
   set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -fuse-ld=${LLVM_USE_LINKER}")
   check_cxx_source_compiles("int main() { return 0; }" CXX_SUPPORTS_CUSTOM_LINKER)
-  if ( NOT CXX_SUPPORTS_CUSTOM_LINKER )
-    message(FATAL_ERROR "Host compiler does not support '-fuse-ld=${LLVM_USE_LINKER}'")
-  endif()
   set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS})
   append("-fuse-ld=${LLVM_USE_LINKER}"
     CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112905.383711.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211101/cf0622b6/attachment.bin>


More information about the llvm-commits mailing list