[all-commits] [llvm/llvm-project] d3da90: [CMake] Allow setting the location of host tools w...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Wed Jan 18 14:04:24 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d3da9067d143f3d4ce59b6d9ab4606a8ef1dc937
https://github.com/llvm/llvm-project/commit/d3da9067d143f3d4ce59b6d9ab4606a8ef1dc937
Author: Martin Storsjö <martin at martin.st>
Date: 2023-01-18 (Wed, 18 Jan 2023)
Changed paths:
M clang-tools-extra/clang-tidy/misc/CMakeLists.txt
M clang-tools-extra/pseudo/include/CMakeLists.txt
M llvm/CMakeLists.txt
M llvm/cmake/modules/AddLLVM.cmake
M llvm/cmake/modules/TableGen.cmake
M llvm/tools/llvm-config/CMakeLists.txt
M mlir/tools/mlir-linalg-ods-gen/CMakeLists.txt
Log Message:
-----------
[CMake] Allow setting the location of host tools with LLVM_NATIVE_TOOL_DIR
This avoids having to specify the location of all individual tools.
In current builds, one may want to specify LLVM_TABLEGEN, CLANG_TABLEGEN,
LLDB_TABLEGEN, LLVM_CONFIG_PATH, CLANG_PSEUDO_GEN and
CLANG_TIDY_CONFUSABLE_CHARS_GEN; specifying just the base directory
containing all of them is much more convenient.
Factorize the code for setting up use of a tool that is used during
the build (which either is newly built in the same build, or
built in a separate nested cmake build - when cross compiling or
when e.g. optimized tablegen is requested - or used from an existing
prebuilt binary).
Differential Revision: https://reviews.llvm.org/D131052
More information about the All-commits
mailing list