Skip to content
Snippets Groups Projects
Commit 1119552a authored by Sebastian Redl's avatar Sebastian Redl
Browse files

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
parent e6fd52e2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment