Add support for generating Clang diagnostic defs to Makefile.rules.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67006 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sebastian Redl 2009-03-14 11:59:18 +00:00
parent e6fd52e26d
commit 1119552a08

View File

@ -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 $(<F) diagnostic tables with tblgen"
$(Verb) $(MKDIR) $(@D)
$(Verb) $(TableGen) -gen-clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.td,%,$(<F)) -o $(call SYSPATH, $@) Diagnostic.td
endif
###############################################################################
# OTHER RULES: Other rules needed