[llvm-commits] [llvm] r67008 - /llvm/trunk/Makefile.rules
Sebastian Redl
sebastian.redl at getdesigned.at
Sat Mar 14 07:42:51 PDT 2009
Author: cornedbee
Date: Sat Mar 14 09:42:51 2009
New Revision: 67008
URL: http://llvm.org/viewvc/llvm-project?rev=67008&view=rev
Log:
Fix Clang build for srcdir != objdir
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=67008&r1=67007&r2=67008&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Sat Mar 14 09:42:51 2009
@@ -1478,10 +1478,10 @@
ifdef CLANG_BUILD_DIAGNOSTICS_INC
-$(ObjDir)/Diagnostic%Kinds.inc.tmp : Diagnostic%Kinds.td Diagnostic.td $(TBLGEN)
- $(Echo) "Building Clang $(<F) diagnostic tables with tblgen"
+$(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.td,%,$(<F)) -o $(call SYSPATH, $@) Diagnostic.td
+ $(Verb) $(TableGen) -gen-clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) -o $(call SYSPATH, $@) $<
endif
More information about the llvm-commits
mailing list