From 25b44a8973e86c6f13c80c646914beb876e2e2bd Mon Sep 17 00:00:00 2001 From: Stefan Plantikow Date: Fri, 18 Nov 2011 23:03:11 +0100 Subject: [PATCH] Added CFG_NOTIDY flag to the build This should allow a small speedup for test builds; unset by default --- mk/tests.mk | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/mk/tests.mk b/mk/tests.mk index 2da241a4ffb..39fc505c2bb 100644 --- a/mk/tests.mk +++ b/mk/tests.mk @@ -80,24 +80,27 @@ check-fast: tidy \ test/$(FT_DRIVER).out # Run the tidy script in multiple parts to avoid huge 'echo' commands +ifdef CFG_NOTIDY tidy: - @$(call E, check: formatting) - $(Q)echo \ - $(addprefix $(S)src/, $(RUSTLLVM_LIB_CS) $(RUSTLLVM_OBJS_CS) \ - $(RUSTLLVM_HDR) \ - $(RUNTIME_CS) $(RUNTIME_HDR) $(RUNTIME_S)) \ - $(wildcard $(S)src/etc/*.py) \ - $(COMPILER_CRATE) \ - $(COMPILER_INPUTS) \ - $(STDLIB_CRATE) \ - $(STDLIB_INPUTS) \ - $(COMPILETEST_CRATE) \ - $(COMPILETEST_INPUTS) \ - | xargs -n 10 python $(S)src/etc/tidy.py - $(Q)echo \ - $(ALL_TEST_INPUTS) \ - | xargs -n 10 python $(S)src/etc/tidy.py - +else +tidy: + @$(call E, check: formatting) + $(Q)echo \ + $(addprefix $(S)src/, $(RUSTLLVM_LIB_CS) $(RUSTLLVM_OBJS_CS) \ + $(RUSTLLVM_HDR) \ + $(RUNTIME_CS) $(RUNTIME_HDR) $(RUNTIME_S)) \ + $(wildcard $(S)src/etc/*.py) \ + $(COMPILER_CRATE) \ + $(COMPILER_INPUTS) \ + $(STDLIB_CRATE) \ + $(STDLIB_INPUTS) \ + $(COMPILETEST_CRATE) \ + $(COMPILETEST_INPUTS) \ + | 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