[PATCH] D141092: Optionally install clang-tblgen to aid cross-compiling

James Le Cuirot via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 7 02:38:26 PST 2023


chewi updated this revision to Diff 487073.
chewi edited the summary of this revision.
chewi added a reviewer: nikic.
chewi added a comment.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Reworked and retested against the main branch. Thankfully, it is simpler now.


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

https://reviews.llvm.org/D141092

Files:
  llvm/cmake/modules/TableGen.cmake


Index: llvm/cmake/modules/TableGen.cmake
===================================================================
--- llvm/cmake/modules/TableGen.cmake
+++ llvm/cmake/modules/TableGen.cmake
@@ -190,7 +190,8 @@
     endif()
   endif()
 
-  if (ADD_TABLEGEN_DESTINATION AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND LLVM_BUILD_UTILS)
+  if (ADD_TABLEGEN_DESTINATION AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND
+      (LLVM_BUILD_UTILS OR ${target} IN_LIST LLVM_DISTRIBUTION_COMPONENTS))
     set(export_arg)
     if(ADD_TABLEGEN_EXPORT)
       get_target_export_arg(${target} ${ADD_TABLEGEN_EXPORT} export_arg)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141092.487073.patch
Type: text/x-patch
Size: 594 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230107/fadafd04/attachment.bin>


More information about the llvm-commits mailing list