llvm.org GIT mirror llvm / 97a44c8
Re-land "Fix MSVC dependency issue between Clang-tablegen and LLVM-tablegen" (was reverted by mistake) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349672 91177308-0d34-0410-b5e6-96231b3b80d8 Alexandre Ganea 9 months ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
145145 llvm_ExternalProject_BuildCmd(tblgen_build_cmd ${target}
146146 ${LLVM_NATIVE_BUILD}
147147 CONFIGURATION Release)
148 # Create an artificial dependency between tablegen projects, because they
149 # compile the same dependencies, thus using the same build folders.
150 # FIXME: A proper fix requires sequentially chaining tablegens.
151 if (NOT ${project} STREQUAL LLVM AND TARGET ${project}-tablegen-host)
152 add_dependencies(${project}-tablegen-host LLVM-tablegen-host)
153 endif()
148154 add_custom_command(OUTPUT ${${project}_TABLEGEN_EXE}
149155 COMMAND ${tblgen_build_cmd}
150156 DEPENDS CONFIGURE_LLVM_NATIVE ${target}