Skip to content

Commit

Permalink
Allow production of -stats output for benchmarks by specifying
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lattner committed Sep 30, 2002
1 parent 925ad19 commit 9551817
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/Makefile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 9551817

Please sign in to comment.