Index: cmake/modules/TableGen.cmake =================================================================== --- cmake/modules/TableGen.cmake +++ cmake/modules/TableGen.cmake @@ -165,6 +165,9 @@ COMMENT "Building native TableGen..." USES_TERMINAL) add_custom_target(${project}-tablegen-host DEPENDS ${${project}_TABLEGEN_EXE}) + if (NOT ${project} STREQUAL LLVM) + add_dependencies(${project}-tablegen-host LLVM-tablegen-host) + endif() set(${project}_TABLEGEN_TARGET ${project}-tablegen-host PARENT_SCOPE) endif() endif()