[llvm] 34e814a - [CMake] Make split-file an utility instead of tool
Markus Böck via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 3 01:47:24 PDT 2022
Author: Markus Böck
Date: 2022-08-03T10:47:14+02:00
New Revision: 34e814a00cb071059b9f7626c9456891409075ac
URL: https://github.com/llvm/llvm-project/commit/34e814a00cb071059b9f7626c9456891409075ac
DIFF: https://github.com/llvm/llvm-project/commit/34e814a00cb071059b9f7626c9456891409075ac.diff
LOG: [CMake] Make split-file an utility instead of tool
`split-file` is essentially a development tool used for writing tests. Other related tooling for this purpose such as `FileCheck`, `count`, `not` and more are already created via `add_llvm_utility` instead of `add_llvm_tool`. The later is more meant as LLVM tools used as part of a toolchain (eg. `llvm-ar`), not for tools for the development of LLVM itself.
The main semantic difference this makes is that `split-file` is now built and installed via the `LLVM_INSTALL_UTILS` and `LLVM_BUILD_UTILS` instead of `LLVM_BUILD_TOOLS` and `LLVM_INSTALL_TOOLS` cmake flags. That way one can use `LLVM_BUILD_TOOLS=OFF LLVM_INSTALL_UTILS=ON` and have `split-file` installed along side the other testing tools.
Differential Revision: https://reviews.llvm.org/D130977
Added:
Modified:
llvm/tools/split-file/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/tools/split-file/CMakeLists.txt b/llvm/tools/split-file/CMakeLists.txt
index ba998483c22aa..c20fecdaec944 100644
--- a/llvm/tools/split-file/CMakeLists.txt
+++ b/llvm/tools/split-file/CMakeLists.txt
@@ -2,6 +2,6 @@ set(LLVM_LINK_COMPONENTS
Support
)
-add_llvm_tool(split-file
+add_llvm_utility(split-file
split-file.cpp
)
More information about the llvm-commits
mailing list