[llvm-commits] CVS: llvm/test/Programs/Makefile.programs
Chris Lattner
lattner at cs.uiuc.edu
Wed Jan 22 21:53:01 PST 2003
Changes in directory llvm/test/Programs:
Makefile.programs updated: 1.33 -> 1.34
---
Log message:
The bytecode repository should contain raw llvm files, not preoptimized llvm files
---
Diffs of the changes:
Index: llvm/test/Programs/Makefile.programs
diff -u llvm/test/Programs/Makefile.programs:1.33 llvm/test/Programs/Makefile.programs:1.34
--- llvm/test/Programs/Makefile.programs:1.33 Tue Jan 21 15:31:59 2003
+++ llvm/test/Programs/Makefile.programs Wed Jan 22 21:52:00 2003
@@ -145,18 +145,19 @@
# Given a version of the entire program linked together into a single unit of
# raw output from the C frontend, optimize it.
+$(PROGRAMS_TO_TEST:%=Output/%.linked.bc): \
Output/%.linked.bc: Output/%.linked.rll $(LGCCAS)
$(LGCCAS) $(STATS) $< -o $@
# Rule to produce final program bytecode file from linked, optimized, bytecode.
-ifndef USE_PRECOMPILED_BYTECODE
-
# Link the program to the libraries it uses, then perform postlink
# optimization...
-Output/%.llvm Output/%.llvm.bc: Output/%.linked.bc
+$(PROGRAMS_TO_TEST:%=Output/%.llvm.bc): \
+Output/%.llvm.bc: Output/%.linked.bc
+ $(LGCCLD) $(STATS) $< -lgcc -lc $(LIBS) -o Output/$*.llvm
+$(PROGRAMS_TO_TEST:%=Output/%.llvm): \
+Output/%.llvm: Output/%.linked.bc
$(LGCCLD) $(STATS) $< -lgcc -lc $(LIBS) -o Output/$*.llvm
-
-endif
#
# Rules to compile the program for the C Back End
@@ -238,9 +239,9 @@
Output/%.out-nat: $(SRCDIR)/%.reference_output Output/.dir
cp $< $@
-# To make a bytecode file up-to-date, just copy it over.
-$(PROGRAMS_TO_TEST:%=Output/%.llvm.bc): \
-Output/%.llvm.bc: $(SRCDIR)/%.bc Output/.dir
+# To make a raw bytecode file up-to-date, just copy it over.
+$(PROGRAMS_TO_TEST:%=Output/%.linked.rll): \
+Output/%.linked.rll: $(SRCDIR)/%.linked.rll Output/.dir
cp $< $@
endif
More information about the llvm-commits
mailing list