1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Fix Clang build for srcdir != objdir

llvm-svn: 67008
This commit is contained in:
Sebastian Redl 2009-03-14 14:42:51 +00:00
parent 0579fd8f8d
commit 5fb9613105

View File

@ -1478,10 +1478,10 @@ 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"
$(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