mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Add support for generating Clang diagnostic defs to Makefile.rules.
llvm-svn: 67006
This commit is contained in:
parent
da664dfdd7
commit
0579fd8f8d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user