mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-16 23:38:40 +00:00
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:
parent
e6fd52e26d
commit
1119552a08
@ -1358,6 +1358,10 @@ ifdef LLVMC_BUILD_AUTOGENERATED_INC
|
|||||||
TABLEGEN_INC_FILES_COMMON = 1
|
TABLEGEN_INC_FILES_COMMON = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef CLANG_BUILD_DIAGNOSTICS_INC
|
||||||
|
TABLEGEN_INC_FILES_COMMON = 1
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef TABLEGEN_INC_FILES_COMMON
|
ifdef TABLEGEN_INC_FILES_COMMON
|
||||||
|
|
||||||
INCFiles := $(filter %.inc,$(BUILT_SOURCES))
|
INCFiles := $(filter %.inc,$(BUILT_SOURCES))
|
||||||
@ -1472,6 +1476,14 @@ $(ObjDir)/AutoGenerated.inc.tmp: $(LLVMCPluginSrc) $(ObjDir)/.dir \
|
|||||||
|
|
||||||
endif # LLVMC_BUILD_AUTOGENERATED_INC
|
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
|
# OTHER RULES: Other rules needed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user