diff --git a/Makefile.rules b/Makefile.rules index b7992fdde42..948b88099f3 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -1358,6 +1358,10 @@ ifdef LLVMC_BUILD_AUTOGENERATED_INC TABLEGEN_INC_FILES_COMMON = 1 endif +ifdef CLANG_BUILD_DIAGNOSTICS_INC +TABLEGEN_INC_FILES_COMMON = 1 +endif + ifdef TABLEGEN_INC_FILES_COMMON INCFiles := $(filter %.inc,$(BUILT_SOURCES)) @@ -1472,6 +1476,14 @@ $(ObjDir)/AutoGenerated.inc.tmp: $(LLVMCPluginSrc) $(ObjDir)/.dir \ endif # LLVMC_BUILD_AUTOGENERATED_INC +ifdef CLANG_BUILD_DIAGNOSTICS_INC + +$(ObjDir)/Diagnostic%Kinds.inc.tmp : Diagnostic%Kinds.td Diagnostic.td $(TBLGEN) + $(Echo) "Building Clang $(