diff options
| author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2018-12-19 19:42:21 +0000 |
|---|---|---|
| committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2018-12-19 19:42:21 +0000 |
| commit | e4fa9b06f334156d846b9a38aff1822a8612d9c0 (patch) | |
| tree | e8ab1f22a01ac01106436e6da4511d33b418d1b0 /llvm/cmake | |
| parent | d16da2b479cda5c72d4b1a589852318f0915e699 (diff) | |
| download | bcm5719-llvm-e4fa9b06f334156d846b9a38aff1822a8612d9c0.tar.gz bcm5719-llvm-e4fa9b06f334156d846b9a38aff1822a8612d9c0.zip | |
Re-land "Fix MSVC dependency issue between Clang-tablegen and LLVM-tablegen"
(was reverted by mistake)
llvm-svn: 349672
Diffstat (limited to 'llvm/cmake')
| -rw-r--r-- | llvm/cmake/modules/TableGen.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake index ee1840da6c5..3c84ae78a34 100644 --- a/llvm/cmake/modules/TableGen.cmake +++ b/llvm/cmake/modules/TableGen.cmake @@ -146,6 +146,12 @@ macro(add_tablegen target project) llvm_ExternalProject_BuildCmd(tblgen_build_cmd ${target} ${LLVM_NATIVE_BUILD} CONFIGURATION Release) + # Create an artificial dependency between tablegen projects, because they + # compile the same dependencies, thus using the same build folders. + # FIXME: A proper fix requires sequentially chaining tablegens. + if (NOT ${project} STREQUAL LLVM AND TARGET ${project}-tablegen-host) + add_dependencies(${project}-tablegen-host LLVM-tablegen-host) + endif() add_custom_command(OUTPUT ${${project}_TABLEGEN_EXE} COMMAND ${tblgen_build_cmd} DEPENDS CONFIGURE_LLVM_NATIVE ${target} |

