Allow production of -stats output for benchmarks by specifying
authorChris Lattner <sabre@nondot.org>
Mon, 30 Sep 2002 19:23:55 +0000 (19:23 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 30 Sep 2002 19:23:55 +0000 (19:23 +0000)
ENABLE_STATS=1 on the make command line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3988 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile.tests

index 5c6a96388aa4a79dc3001d0d4b27f18e255aa4bc..1b9a413595650f374e52dd9035b301e129d93074 100644 (file)
@@ -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 @@ Output/%.ll: %.c $(LCC1) Output/.dir $(INCLUDES)
 # 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.