Kaydet (Commit) bbadfca2 authored tarafından Michael Stahl's avatar Michael Stahl

refactor make check to run subsequentcheck parallel to instset

... which saves 4 minutes on a "make check" here, when configured
--with-package-format="archive"

Change-Id: I415e0e95ae7f4e289fa4797643f5d744015d80ad
üst 457e0aef
......@@ -229,8 +229,11 @@ bootstrap: compilerplugins
#
# Build
#
# Note: if invoked as "make check" this will also run subsequentcheck!
#
build: bootstrap fetch $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross-toolset)
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild \
all $(if $(filter check,$(MAKECMDGOALS)),subsequentcheck)
ifneq ($(filter-out WNT MACOSX IOS ANDROID,$(OS)),)
install-gdb-printers -a $(INSTDIR)
endif
......@@ -373,7 +376,8 @@ findunusedcode:
| grep -v ^WSObject \
> unusedcode.easy
check: build subsequentcheck
# the actual running of subsequentcheck is now done in "build" target => faster
check: build
dump-deps:
@$(SRCDIR)/bin/module-deps.pl $(GNUMAKE) $(SRCDIR)/Makefile.gbuild
......
......@@ -229,10 +229,14 @@ $(call gb_Module_get_clean_target,$(1)) : $$(gb_Module_CURRENTCLEANTARGET)
endef
# has order dependency on AllModulesButInstsetNative to be able to run
# subsequentcheck in the same make process on "make check"
define gb_Module_add_subsequentcheck_target
$(call gb_Module__read_targetfile,$(1),$(2),subsequentcheck target)
$(call gb_Module_get_subsequentcheck_target,$(1)) : $$(gb_Module_CURRENTTARGET)
$$(gb_Module_CURRENTTARGET) :| \
$(call gb_Postprocess_get_target,AllModulesButInstsetNative)
$(call gb_Module_get_clean_target,$(1)) : $$(gb_Module_CURRENTCLEANTARGET)
endef
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment