[llvm-commits] [llvm] r67006 - /llvm/trunk/Makefile.rules
Sebastian Redl
sebastian.redl at getdesigned.at
Sat Mar 14 04:59:20 PDT 2009
Author: cornedbee
Date: Sat Mar 14 06:59:18 2009
New Revision: 67006
URL: http://llvm.org/viewvc/llvm-project?rev=67006&view=rev
Log:
Add support for generating Clang diagnostic defs to Makefile.rules.
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=67006&r1=67005&r2=67006&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Sat Mar 14 06:59:18 2009
@@ -1358,6 +1358,10 @@
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 @@
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
More information about the llvm-commits
mailing list