Added CFG_NOTIDY flag to the build

This should allow a small speedup for test builds; unset by default
This commit is contained in:
Stefan Plantikow 2011-11-18 23:03:11 +01:00 committed by Brian Anderson
parent b6af844f3a
commit 25b44a8973
1 changed files with 20 additions and 17 deletions

View File

@ -80,24 +80,27 @@ check-fast: tidy \
test/$(FT_DRIVER).out test/$(FT_DRIVER).out
# Run the tidy script in multiple parts to avoid huge 'echo' commands # Run the tidy script in multiple parts to avoid huge 'echo' commands
ifdef CFG_NOTIDY
tidy: tidy:
@$(call E, check: formatting) else
$(Q)echo \ tidy:
$(addprefix $(S)src/, $(RUSTLLVM_LIB_CS) $(RUSTLLVM_OBJS_CS) \ @$(call E, check: formatting)
$(RUSTLLVM_HDR) \ $(Q)echo \
$(RUNTIME_CS) $(RUNTIME_HDR) $(RUNTIME_S)) \ $(addprefix $(S)src/, $(RUSTLLVM_LIB_CS) $(RUSTLLVM_OBJS_CS) \
$(wildcard $(S)src/etc/*.py) \ $(RUSTLLVM_HDR) \
$(COMPILER_CRATE) \ $(RUNTIME_CS) $(RUNTIME_HDR) $(RUNTIME_S)) \
$(COMPILER_INPUTS) \ $(wildcard $(S)src/etc/*.py) \
$(STDLIB_CRATE) \ $(COMPILER_CRATE) \
$(STDLIB_INPUTS) \ $(COMPILER_INPUTS) \
$(COMPILETEST_CRATE) \ $(STDLIB_CRATE) \
$(COMPILETEST_INPUTS) \ $(STDLIB_INPUTS) \
| xargs -n 10 python $(S)src/etc/tidy.py $(COMPILETEST_CRATE) \
$(Q)echo \ $(COMPILETEST_INPUTS) \
$(ALL_TEST_INPUTS) \ | xargs -n 10 python $(S)src/etc/tidy.py
| xargs -n 10 python $(S)src/etc/tidy.py $(Q)echo \
$(ALL_TEST_INPUTS) \
| xargs -n 10 python $(S)src/etc/tidy.py
endif
###################################################################### ######################################################################
# Rules for the test runners # Rules for the test runners