summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-13 05:44:27 +0000
committerChris Lattner <sabre@nondot.org>2001-11-13 05:44:27 +0000
commitc047f4eb021d47f70e26da92252e3af36bf2b00a (patch)
tree35c86bd2ee072a3a2e167d0dba390c90da35e2e3
parent0cd962fa61cdd5aeac63501b43edecbed6a6ceda (diff)
downloadbcm5719-llvm-c047f4eb021d47f70e26da92252e3af36bf2b00a.tar.gz
bcm5719-llvm-c047f4eb021d47f70e26da92252e3af36bf2b00a.zip
Overwrite files when linked
Remove native files when cleaned llvm-svn: 1289
-rw-r--r--llvm/test/Makefile.target4
-rw-r--r--llvm/test/Makefile.tests4
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Makefile.target b/llvm/test/Makefile.target
index beac97847c5..37ebbbc4c34 100644
--- a/llvm/test/Makefile.target
+++ b/llvm/test/Makefile.target
@@ -51,7 +51,7 @@ ifdef PROG
$(PROG).linked.bc: $(BCOBJS)
$(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc
- $(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@
+ $(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@ -f
$(RM) $(PROG).tmp.bc
$(PROG).native: $(OBJS:.o=.c)
@@ -68,7 +68,7 @@ runtime.o: runtime.c
$(CC) -c $(CCFLAGS) $<
clean :
- $(RM) *.[123] *.bc *.mc *.s *.o a.out core $(PROG)
+ $(RM) *.[123] *.bc *.mc *.s *.o a.out core $(PROG) $(PROG).native
%.mc: %.bc $(LLC) $(AS)
@echo "Generating machine instructions for $<"
diff --git a/llvm/test/Makefile.tests b/llvm/test/Makefile.tests
index beac97847c5..37ebbbc4c34 100644
--- a/llvm/test/Makefile.tests
+++ b/llvm/test/Makefile.tests
@@ -51,7 +51,7 @@ ifdef PROG
$(PROG).linked.bc: $(BCOBJS)
$(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc
- $(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@
+ $(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@ -f
$(RM) $(PROG).tmp.bc
$(PROG).native: $(OBJS:.o=.c)
@@ -68,7 +68,7 @@ runtime.o: runtime.c
$(CC) -c $(CCFLAGS) $<
clean :
- $(RM) *.[123] *.bc *.mc *.s *.o a.out core $(PROG)
+ $(RM) *.[123] *.bc *.mc *.s *.o a.out core $(PROG) $(PROG).native
%.mc: %.bc $(LLC) $(AS)
@echo "Generating machine instructions for $<"
OpenPOWER on IntegriCloud