diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-20 16:44:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-20 16:44:21 +0000 |
commit | eefaeeccfb66818963301003911d104d6d628f9d (patch) | |
tree | c792f46725bc536dd29085df1cafd6273b6971a6 /lib/VMCore/Makefile | |
parent | abb4d7829f3480aef03dcb5c16abdf279bb966e6 (diff) | |
download | llvm-eefaeeccfb66818963301003911d104d6d628f9d.tar.gz llvm-eefaeeccfb66818963301003911d104d6d628f9d.tar.bz2 llvm-eefaeeccfb66818963301003911d104d6d628f9d.tar.xz |
Fix PR835 so that touching tblgen in a way that doesn't affect intrinsic
generation does not rebuild files that just use intrinsic info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Makefile')
-rw-r--r-- | lib/VMCore/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/VMCore/Makefile b/lib/VMCore/Makefile index 6c2137eadd..af3ae403b9 100644 --- a/lib/VMCore/Makefile +++ b/lib/VMCore/Makefile @@ -19,10 +19,13 @@ GENFILE:=$(PROJ_SRC_ROOT)/include/llvm/Intrinsics.gen INTRINSICTD := $(PROJ_SRC_ROOT)/include/llvm/Intrinsics.td INTRINSICTDS := $(wildcard $(PROJ_SRC_ROOT)/include/llvm/Intrinsics*.td) -$(GENFILE): $(INTRINSICTDS) $(TBLGEN) - $(Echo) Building Intrinsics.gen from Intrinsics.td +$(ObjDir)/Intrinsics.gen.tmp: $(INTRINSICTDS) $(TBLGEN) + $(Echo) Building Intrinsics.gen.tmp from Intrinsics.td $(Verb) $(TableGen) $(INTRINSICTD) -o $@ -gen-intrinsic +$(GENFILE): $(ObjDir)/Intrinsics.gen.tmp + $(Verb) $(CMP) -s $@ $< || $(CP) $< $@ + install-local:: $(GENFILE) $(Echo) Installing $(PROJ_includedir)/llvm/Intrinsics.gen $(Verb) $(DataInstall) $(GENFILE) $(PROJ_includedir)/llvm/Intrinsics.gen |