Skip to content

Commit 4071dbb

Browse files
committed
[CMake] add_tablegen: Rename host tablegen to `${target}-host"
Since `llvm-min-tblgen` has been introduced, `llvm-min-tblgen-host` would make more sense than `LLVM_HEADERS-tablegen-host`. Depends on D146352 Differential Revision: https://reviews.llvm.org/D149343
1 parent 35d218e commit 4071dbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/cmake/modules/TableGen.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ macro(add_tablegen target project)
168168
build_native_tool(${target} ${project}_TABLEGEN_EXE DEPENDS ${target})
169169
set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE)
170170

171-
add_custom_target(${project}-tablegen-host DEPENDS ${${project}_TABLEGEN_EXE})
172-
set(${project}_TABLEGEN_TARGET ${project}-tablegen-host PARENT_SCOPE)
171+
add_custom_target(${target}-host DEPENDS ${${project}_TABLEGEN_EXE})
172+
set(${project}_TABLEGEN_TARGET ${target}-host PARENT_SCOPE)
173173

174174
# If we're using the host tablegen, and utils were not requested, we have no
175175
# need to build this tablegen.

0 commit comments

Comments
 (0)