[llvm-commits] CVS: llvm/test/Programs/Makefile.programs

Chris Lattner lattner at cs.uiuc.edu
Mon Sep 30 14:45:01 PDT 2002


Changes in directory llvm/test/Programs:

Makefile.programs updated: 1.14 -> 1.15

---
Log message:

Make sure that the bytecode for a program is always built, regardless of
what other options are specified


---
Diffs of the changes:

Index: llvm/test/Programs/Makefile.programs
diff -u llvm/test/Programs/Makefile.programs:1.14 llvm/test/Programs/Makefile.programs:1.15
--- llvm/test/Programs/Makefile.programs:1.14	Mon Sep 23 09:23:52 2002
+++ llvm/test/Programs/Makefile.programs	Mon Sep 30 14:44:40 2002
@@ -30,7 +30,7 @@
 include $(LEVEL)/test/Makefile.tests
 
 .PRECIOUS: Output/%.llvm Output/%.native Output/%.llc Output/%.llc.s
-.PRECIOUS: Output/%.cbe Output/%.cbe.c
+.PRECIOUS: Output/%.cbe Output/%.cbe.c Output/%.llvm.bc
 
 # TIMEPROG - The program used to get timing results for a program
 TIMEPROG = $(LEVEL)/test/Programs/TimeProgram.sh
@@ -41,8 +41,11 @@
 # We will be working in the Output directory... 
 PREFIXED_PROGRAMS_TO_TEST := $(addprefix Output/,$(PROGRAMS_TO_TEST))
 
+# Completed bytecode for a program
+BYTECODE   := $(addsuffix .llvm.bc, $(PREFIXED_PROGRAMS_TO_TEST))
+
 # Generated code for llc (which does not require the target platform)
-LLCCODEGEN := $(addsuffix .llc.s,  $(PREFIXED_PROGRAMS_TO_TEST))
+LLCCODEGEN := $(addsuffix .llc.s,   $(PREFIXED_PROGRAMS_TO_TEST))
 
 # Output produced by programs run
 GCCOUTPUT := $(addsuffix .ll,       $(addprefix Output/,$(Source:.c=)))
@@ -61,6 +64,10 @@
 
 # Build diffs for LLI and LLC output...
 .PRECIOUS: Output/%.diff-lli Output/%.diff-llc Output/%.diff-cbe
+
+# Regardless of what other options are specified, build the program's bytecode
+# representation.
+all:: $(BYTECODE)
 
 ifdef RUN_GCC_ONLY
 DISABLE_LLC = 1





More information about the llvm-commits mailing list