[llvm] 3e119c0 - [llvm][CMake] Move `split-file` from tools to utils
Markus Böck via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 12 05:16:53 PDT 2022
Author: Markus Böck
Date: 2022-08-12T14:16:48+02:00
New Revision: 3e119c0efdde7bc3e0f8875f784e31d74ac0ca89
URL: https://github.com/llvm/llvm-project/commit/3e119c0efdde7bc3e0f8875f784e31d74ac0ca89
DIFF: https://github.com/llvm/llvm-project/commit/3e119c0efdde7bc3e0f8875f784e31d74ac0ca89.diff
LOG: [llvm][CMake] Move `split-file` from tools to utils
It fittingly already makes use of add_llvm_utility during target creation and is usually only used in conjunction with other (test) related utilities such as FileCheck and not, which are already in utils.
Differential Revision: https://reviews.llvm.org/D131713
Added:
llvm/utils/split-file/.clang-tidy
llvm/utils/split-file/CMakeLists.txt
llvm/utils/split-file/split-file.cpp
Modified:
llvm/CMakeLists.txt
Removed:
llvm/tools/split-file/.clang-tidy
llvm/tools/split-file/CMakeLists.txt
llvm/tools/split-file/split-file.cpp
################################################################################
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 9d83eb503e27e..8ce79b21531ea 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -1140,6 +1140,7 @@ if( LLVM_INCLUDE_UTILS )
add_subdirectory(utils/not)
add_subdirectory(utils/UnicodeData)
add_subdirectory(utils/yaml-bench)
+ add_subdirectory(utils/split-file)
else()
if ( LLVM_INCLUDE_TESTS )
message(FATAL_ERROR "Including tests when not building utils will not work.
diff --git a/llvm/tools/split-file/.clang-tidy b/llvm/utils/split-file/.clang-tidy
similarity index 100%
rename from llvm/tools/split-file/.clang-tidy
rename to llvm/utils/split-file/.clang-tidy
diff --git a/llvm/tools/split-file/CMakeLists.txt b/llvm/utils/split-file/CMakeLists.txt
similarity index 100%
rename from llvm/tools/split-file/CMakeLists.txt
rename to llvm/utils/split-file/CMakeLists.txt
diff --git a/llvm/tools/split-file/split-file.cpp b/llvm/utils/split-file/split-file.cpp
similarity index 100%
rename from llvm/tools/split-file/split-file.cpp
rename to llvm/utils/split-file/split-file.cpp
More information about the llvm-commits
mailing list