forked from OSchip/llvm-project
[clang-tidy] Rename the make-confusable-table executable
Rename it to clang-tidy-confusable-chars-gen, to make its role
clearer in a wider context.
In cross builds, the caller might want to provide this tool
externally (to avoid needing to rebuild it in the cross build).
In such a case, having the tool properly namespaced makes its role
clearer.
This matches how the clang-pseudo-gen tool was renamed in
a43fef05d4
/ D126725.
Differential Revision: https://reviews.llvm.org/D129798
This commit is contained in:
parent
824954a8c9
commit
18b4a8bcf3
|
@ -4,11 +4,11 @@ set(LLVM_LINK_COMPONENTS
|
|||
)
|
||||
|
||||
if(LLVM_USE_HOST_TOOLS)
|
||||
build_native_tool(make-confusable-table make_confusable_table)
|
||||
build_native_tool(clang-tidy-confusable-chars-gen make_confusable_table)
|
||||
set(make_confusable_table_target "${make_confusable_table}")
|
||||
else()
|
||||
set(make_confusable_table $<TARGET_FILE:make-confusable-table>)
|
||||
set(make_confusable_table_target make-confusable-table)
|
||||
set(make_confusable_table $<TARGET_FILE:clang-tidy-confusable-chars-gen>)
|
||||
set(make_confusable_table_target clang-tidy-confusable-chars-gen)
|
||||
endif()
|
||||
|
||||
add_subdirectory(ConfusableTable)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
set(LLVM_LINK_COMPONENTS Support)
|
||||
list(REMOVE_ITEM LLVM_COMMON_DEPENDS clang-tablegen-targets)
|
||||
|
||||
add_llvm_executable(make-confusable-table
|
||||
add_llvm_executable(clang-tidy-confusable-chars-gen
|
||||
BuildConfusableTable.cpp
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
executable("make-confusable-table") {
|
||||
executable("clang-tidy-confusable-chars-gen") {
|
||||
deps = [ "//llvm/lib/Support" ]
|
||||
sources = [ "BuildConfusableTable.cpp" ]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue