aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile.tests
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-06 20:23:50 +0000
committerChris Lattner <sabre@nondot.org>2001-11-06 20:23:50 +0000
commit054385a11aeb22f184d8619c14100577406c9a2c (patch)
tree579c548dc83bac61d28c44e35d7b8d042292d2b5 /test/Makefile.tests
parenta46fb6bb901d0dea25281b24a8eff89a2e39ce46 (diff)
downloadexternal_llvm-054385a11aeb22f184d8619c14100577406c9a2c.zip
external_llvm-054385a11aeb22f184d8619c14100577406c9a2c.tar.gz
external_llvm-054385a11aeb22f184d8619c14100577406c9a2c.tar.bz2
Don't forget to make the clean version.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile.tests')
-rw-r--r--test/Makefile.tests6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Makefile.tests b/test/Makefile.tests
index e95724c..5a77e2a 100644
--- a/test/Makefile.tests
+++ b/test/Makefile.tests
@@ -52,8 +52,12 @@ ifdef PROG
$(PROG).linked.bc: $(BCOBJS)
$(LLINK) -f $(BCOBJS) -o $@
+ $(PROG).clean.bc: $(PROG).linked.bc
+ $(LOPT) -cleangcc -raise -constprop -dce < $< > $@
+
$(PROG).native: $(OBJS:.o=.c)
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
+
endif
## Special target to force target-dependent library to be compiled
@@ -90,7 +94,7 @@ clean :
%.linked.bc: %.bc
$(CP) $< $@
-%.s: %.linked.bc
+%.s: %.clean.bc
$(LLC) -f $(LLCFLAGS) $< -o $@
%: %.o $(LIBS)