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 (${project} STREQUAL CLANG) + add_dependencies(CLANG-tablegen-host LLVM-tablegen-host) + endif() set(${project}_TABLEGEN_TARGET ${project}-tablegen-host PARENT_SCOPE) endif() endif()