[llvm] 4071dbb - [CMake] add_tablegen: Rename host tablegen to `${target}-host"

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Mon May 1 19:36:07 PDT 2023


Author: NAKAMURA Takumi
Date: 2023-05-02T11:32:22+09:00
New Revision: 4071dbb6b9ce00998357e1eee7ab2413d103ebc2

URL: https://github.com/llvm/llvm-project/commit/4071dbb6b9ce00998357e1eee7ab2413d103ebc2
DIFF: https://github.com/llvm/llvm-project/commit/4071dbb6b9ce00998357e1eee7ab2413d103ebc2.diff

LOG: [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

Added: 
    

Modified: 
    llvm/cmake/modules/TableGen.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake
index b548dbec95900..6f84e994156b9 100644
--- a/llvm/cmake/modules/TableGen.cmake
+++ b/llvm/cmake/modules/TableGen.cmake
@@ -168,8 +168,8 @@ macro(add_tablegen target project)
       build_native_tool(${target} ${project}_TABLEGEN_EXE DEPENDS ${target})
       set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE)
 
-      add_custom_target(${project}-tablegen-host DEPENDS ${${project}_TABLEGEN_EXE})
-      set(${project}_TABLEGEN_TARGET ${project}-tablegen-host PARENT_SCOPE)
+      add_custom_target(${target}-host DEPENDS ${${project}_TABLEGEN_EXE})
+      set(${project}_TABLEGEN_TARGET ${target}-host PARENT_SCOPE)
 
       # If we're using the host tablegen, and utils were not requested, we have no
       # need to build this tablegen.


        


More information about the llvm-commits mailing list