mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
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 llvm-svn: 349541
This commit is contained in:
parent
dff7e8c2a8
commit
c1be8338e0
@ -158,6 +158,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)
|
||||
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}
|
||||
|
Loading…
Reference in New Issue
Block a user