llvm.org GIT mirror llvm / d44ed28
[CMake] Remove target to build native tablegen This was once needed so that multiple tablegen binaries don't compile the library concurrently. However, this isn't needed anymore since adding USES_TERMINAL to the custom_command. This is supported by the fact that the target was only building LLVMSupport since some cleanups a year ago. If this dependency had really been needed, we would have seen complaints. Differential Revision: https://reviews.llvm.org/D39299 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317695 91177308-0d34-0410-b5e6-96231b3b80d8 Jonas Hahnfeld 1 year, 11 months ago
1 changed file(s) with 1 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
109109 set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} ${target} PARENT_SCOPE)
110110 endfunction()
111111
112 if(LLVM_USE_HOST_TOOLS AND NOT TARGET NATIVE_LIB_LLVMTABLEGEN)
113 llvm_ExternalProject_BuildCmd(tblgen_build_cmd LLVMSupport
114 ${LLVM_NATIVE_BUILD}
115 CONFIGURATION Release)
116 add_custom_command(OUTPUT LIB_LLVMTABLEGEN
117 COMMAND ${tblgen_build_cmd}
118 DEPENDS CONFIGURE_LLVM_NATIVE
119 WORKING_DIRECTORY ${LLVM_NATIVE_BUILD}
120 COMMENT "Building libLLVMTableGen for native TableGen..."
121 USES_TERMINAL)
122 add_custom_target(NATIVE_LIB_LLVMTABLEGEN DEPENDS LIB_LLVMTABLEGEN)
123 endif()
124
125112 macro(add_tablegen target project)
126113 set(${target}_OLD_LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS})
127114 set(LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS} TableGen)
165152 CONFIGURATION Release)
166153 add_custom_command(OUTPUT ${${project}_TABLEGEN_EXE}
167154 COMMAND ${tblgen_build_cmd}
168 DEPENDS ${target} NATIVE_LIB_LLVMTABLEGEN
155 DEPENDS CONFIGURE_LLVM_NATIVE ${target}
169156 WORKING_DIRECTORY ${LLVM_NATIVE_BUILD}
170157 COMMENT "Building native TableGen..."
171158 USES_TERMINAL)