Skip to content

Commit e6aba2f

Browse files
committed
[llvm] Make obj2yaml and yaml2obj LLVM utilities instead of tools
For testing purposes I need a way to build and install FileCheck and yaml2obj. I had to choose between making FileCheck an LLVM tool and making obj2yaml and yaml2obj utilities. I think the distinction is rather arbitrary but my understanding is that tools are things meant for the toolchain while utilities are more used for things like testing, which is the case here. The functional difference is that these tools now end up in the ${LLVM_UTILS_INSTALL_DIR}, which defaults to the ${LLVM_TOOLS_INSTALL_DIR}. Unless you specified a different value or you added obj2yaml and yaml2obj to ${LLVM_TOOLCHAIN_TOOLS}, this patch shouldn't change anything. Differential revision: https://reviews.llvm.org/D89357 (cherry picked from commit 97b8e2c)
1 parent 0efe2f4 commit e6aba2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/tools/obj2yaml/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(LLVM_LINK_COMPONENTS
77
Support
88
)
99

10-
add_llvm_tool(obj2yaml
10+
add_llvm_utility(obj2yaml
1111
obj2yaml.cpp
1212
coff2yaml.cpp
1313
dwarf2yaml.cpp

llvm/tools/yaml2obj/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ set(LLVM_LINK_COMPONENTS
33
Support
44
)
55

6-
add_llvm_tool(yaml2obj
6+
add_llvm_utility(yaml2obj
77
yaml2obj.cpp
88
)

0 commit comments

Comments
 (0)