aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-15 19:58:08 +0000
committerChris Lattner <sabre@nondot.org>2009-04-15 19:58:08 +0000
commit8ee50eaf015e3857c04d0ed229f8165faee5544d (patch)
tree28263c4690f9b9f09e1f864a90f1bb73fae53975
parent7595fb1418243ac715d729b4dc62d995a7a1d5a5 (diff)
move clang specific makefile goop to clang instead of llvm. This may require
updating the llvm tree. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69207 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Basic/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/clang/Basic/Makefile b/include/clang/Basic/Makefile
index 39193111b3..f8fefcf84d 100644
--- a/include/clang/Basic/Makefile
+++ b/include/clang/Basic/Makefile
@@ -3,7 +3,19 @@ BUILT_SOURCES = DiagnosticAnalysisKinds.inc DiagnosticASTKinds.inc \
DiagnosticCommonKinds.inc DiagnosticDriverKinds.inc \
DiagnosticFrontendKinds.inc DiagnosticLexKinds.inc \
DiagnosticParseKinds.inc DiagnosticSemaKinds.inc
+# DiagnosticGroups.inc
-CLANG_BUILD_DIAGNOSTICS_INC = 1
+TABLEGEN_INC_FILES_COMMON = 1
include $(LEVEL)/Makefile.common
+
+$(ObjDir)/Diagnostic%Kinds.inc.tmp : Diagnostic.td Diagnostic%Kinds.td $(TBLGEN)
+ $(Echo) "Building Clang $(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) diagnostic tables with tblgen"
+ $(Verb) $(MKDIR) $(@D)
+ $(Verb) $(TableGen) -gen-clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) -o $(call SYSPATH, $@) $<
+
+
+
+# DiagnosticGroups.inc
+
+