summaryrefslogtreecommitdiff
path: root/test/Makefile.tests
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-30 19:23:55 +0000
committerChris Lattner <sabre@nondot.org>2002-09-30 19:23:55 +0000
commit9551817d4fd8641f2301e98362aa087910693d1c (patch)
treedd394e070951526df87a150a91feb7c18d26729a /test/Makefile.tests
parent925ad19292947ce31b9d3f8622ac70bbb7de58be (diff)
downloadllvm-9551817d4fd8641f2301e98362aa087910693d1c.tar.gz
llvm-9551817d4fd8641f2301e98362aa087910693d1c.tar.bz2
llvm-9551817d4fd8641f2301e98362aa087910693d1c.tar.xz
Allow production of -stats output for benchmarks by specifying
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
Diffstat (limited to 'test/Makefile.tests')
-rw-r--r--test/Makefile.tests10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Makefile.tests b/test/Makefile.tests
index 5c6a96388a..1b9a413595 100644
--- a/test/Makefile.tests
+++ b/test/Makefile.tests
@@ -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.