[llvm-commits] CVS: llvm/test/Makefile.tests

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


Changes in directory llvm/test:

Makefile.tests updated: 1.45 -> 1.46

---
Log message:

Allow production of -stats output for benchmarks by specifying 
ENABLE_STATS=1 on the make command line.


---
Diffs of the changes:

Index: llvm/test/Makefile.tests
diff -u llvm/test/Makefile.tests:1.45 llvm/test/Makefile.tests:1.46
--- llvm/test/Makefile.tests:1.45	Sun Sep 29 17:58:51 2002
+++ llvm/test/Makefile.tests	Mon Sep 30 14:23:22 2002
@@ -5,9 +5,15 @@
 
 ## NOTE: This is preliminary and will change in the future
 
-
 include ${LEVEL}/Makefile.common
 
+# Specify ENABLE_STATS on the command line to enable -stats output from gccas
+# and gccld.
+ifdef ENABLE_STATS
+STATS = -stats
+endif
+
+
 .PHONY: clean default
 
 # These files, which might be intermediate results, should not be deleted by
@@ -74,7 +80,7 @@
 # from GCC output, so use GCCAS.
 #
 Output/%.bc: Output/%.ll $(LGCCAS)
-	$(LGCCAS) $< -o $@
+	$(LGCCAS) $(STATS) $< -o $@
 
 # LLVM Assemble from X.ll to Output/X.bc.  Because we are coming directly from
 # LLVM source, use the non-transforming assembler.





More information about the llvm-commits mailing list