[all-commits] [llvm/llvm-project] 706881: [cmake] Optionally install clang-tblgen to aid cro...
James Le Cuirot via All-commits
all-commits at lists.llvm.org
Thu Jan 12 00:44:00 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 706881825b2470c7176e07355b6ab54d8b4c5f95
https://github.com/llvm/llvm-project/commit/706881825b2470c7176e07355b6ab54d8b4c5f95
Author: James Le Cuirot <chewi at gentoo.org>
Date: 2023-01-12 (Thu, 12 Jan 2023)
Changed paths:
M llvm/cmake/modules/TableGen.cmake
Log Message:
-----------
[cmake] Optionally install clang-tblgen to aid cross-compiling
clang-tblgen is required to cross-compile clang itself. Unlike before,
most of the infrastructure is in place to do this now, and the only
thing preventing it is LLVM_BUILD_UTILS, which doesn't apply to Clang.
I thought about changing this to ${project}_BUILD_UTILS and adding
a CLANG_BUILD_UTILS option, but there seems little point for just one tool.
Instead, it checks whether clang-tblgen was explicitly requested in
LLVM_DISTRIBUTION_COMPONENTS, which is good enough for Gentoo and
other distributions.
Closes https://github.com/llvm/llvm-project/issues/20282.
Differential Revision: https://reviews.llvm.org/D141092
More information about the All-commits
mailing list