summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-10-21 17:59:22 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-10-21 21:28:50 +0200
commitb4d67c0eb176391b6d6ff5fb3c62d79b0e50bfe0 (patch)
tree71615684c8f9c9f8007fcdf6302bb53299567648
parentFix for YaccObject, also: YaccObject should not generate stuff directly in to... (diff)
downloadcore-b4d67c0eb176391b6d6ff5fb3c62d79b0e50bfe0.tar.gz
core-b4d67c0eb176391b6d6ff5fb3c62d79b0e50bfe0.zip
only enable gb_CHECKOBJECTOWNER for explicit check runs
-rw-r--r--solenv/gbuild/gbuild.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk
index 96044f94bceb..1cc724305cc3 100644
--- a/solenv/gbuild/gbuild.mk
+++ b/solenv/gbuild/gbuild.mk
@@ -126,9 +126,13 @@ else
gb_FULLDEPS := $(true)
endif
+# Life in the fast lane: only check for duplicate objects when explicitly building check targets
+# triples speed of noop builds
ifeq ($(origin gb_CHECKOBJECTOWNER),undefined)
+ifneq ($(filter check unitcheck subsequentcheck,$(MAKECMDGOALS)),)
gb_CHECKOBJECTOWNER := $(true)
endif
+endif
# save user-supplied flags for latter use
ifneq ($(strip $(CFLAGS)),)