From 1de66889ec97300eb92166e849c4f9251e0290c6 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Thu, 30 Jul 2009 11:54:27 -0700 Subject: [PATCH] Don't check build tools versions (including javac) every time make is run. This trims off another 1/3 of a second from incremental build times. VERSION_CHECK_SEQUENCE_NUMBER can be incremented to force a check. --- core/main.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/main.mk b/core/main.mk index c3f1e2fac..482fefd8e 100644 --- a/core/main.mk +++ b/core/main.mk @@ -54,6 +54,12 @@ include $(BUILD_SYSTEM)/config.mk # be generated correctly include $(BUILD_SYSTEM)/cleanbuild.mk +VERSION_CHECK_SEQUENCE_NUMBER := 1 +-include $(OUT_DIR)/versions_checked.mk +ifneq ($(VERSION_CHECK_SEQUENCE_NUMBER),$(VERSIONS_CHECKED)) + +$(info Checking build tools versions...) + ifneq ($(HOST_OS),windows) ifneq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc) # check for a case sensitive file system @@ -123,6 +129,10 @@ endif endif # windows +$(shell echo 'VERSIONS_CHECKED := $(VERSION_CHECK_SEQUENCE_NUMBER)' \ + > $(OUT_DIR)/versions_checked.mk) +endif + # These are the modifier targets that don't do anything themselves, but # change the behavior of the build. # (must be defined before including definitions.make)