[PATCH] D97451: [PR48898][CMake] Support MinGW Toolchain tools in llvm_ExternalProject_Add

Markus Böck via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 2 05:43:41 PST 2021


zero9178 updated this revision to Diff 327419.
zero9178 added a comment.

Added new option argument to llvm_ExternalProject_Add called TARGET_TRIPLE. When set, passes the various CMAKE_<LANG>_COMPILER_TARGET as cmake argument. 
Additionally a helper function called is_msvc_triple is used to determine whether the target triple (either set by TARGET_TRIPLE or LLVM_DEFAULT_TARGET_TRIPLE) refers to an msvc target. If that is the case and the just-built toolchain is to be used, it will select clang-cl as well as other MSVC specific tools over the GNU style ones.

Also updated usages of llvm_ExternProject_Add accordingly


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

https://reviews.llvm.org/D97451

Files:
  llvm/cmake/modules/LLVMExternalProjectUtils.cmake
  llvm/runtimes/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97451.327419.patch
Type: text/x-patch
Size: 8148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210302/08473089/attachment.bin>


More information about the llvm-commits mailing list