mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Allow production of -stats output for benchmarks by specifying
ENABLE_STATS=1 on the make command line. llvm-svn: 3988
This commit is contained in:
parent
90d79b536c
commit
90e74835ef
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user