llvm.org GIT mirror llvm / afdba0b
Re-land "Fix MSVC dependency issue between Clang-tablegen and LLVM-tablegen" Previously, when compiling Visual Studio targets, one could see random build errors. This was caused by tablegen projects using the same build folders. This workaround simply chains tablegen projects. Differential Revision: https://reviews.llvm.org/D54153 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349596 91177308-0d34-0410-b5e6-96231b3b80d8 Alexandre Ganea 10 months ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
157157 llvm_ExternalProject_BuildCmd(tblgen_build_cmd ${target}
158158 ${LLVM_NATIVE_BUILD}
159159 CONFIGURATION Release)
160 # Create an artificial dependency between tablegen projects, because they
161 # compile the same dependencies, thus using the same build folders.
162 # FIXME: A proper fix requires sequentially chaining tablegens.
163 if (NOT ${project} STREQUAL LLVM AND TARGET ${project}-tablegen-host)
164 add_dependencies(${project}-tablegen-host LLVM-tablegen-host)
165 endif()
160166 add_custom_command(OUTPUT ${${project}_TABLEGEN_EXE}
161167 COMMAND ${tblgen_build_cmd}
162168 DEPENDS CONFIGURE_LLVM_NATIVE ${target}