summaryrefslogtreecommitdiff
path: root/coreconf/ruleset.mk
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2020-05-05 12:28:43 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2020-05-05 12:28:43 +0000
commit67fdc06273c2a423e32d6e78f9ae046a7ef3a9db (patch)
tree29b2d07fdb87b65acb4641bc851564a8dd263ea2 /coreconf/ruleset.mk
parente41bdc85df87fec3dbdce52568d217ae0d58127c (diff)
downloadnss-hg-67fdc06273c2a423e32d6e78f9ae046a7ef3a9db.tar.gz
Bug 290526 Parallelize part of the NSS build r=rrelyea
This still serializes many targets, but at least these targets themself run their build in parallel. The main serialization happens in nss/Makefile and nss/coreconf/rules.mk's all target. We can't add these as real dependencies, as all Makefile snippets use the same variable names. I tried to always run sub-makes to hack in the depndencies, but these don't know of each other, so targets very often run twice, and this breaks the build. Having a tests:: target and a tests directory leads to misery (and doesn't work), so it's renamed to check. This just works with NSS_DISABLE_GTESTS=1 specified and is fixed by a follow up patch, which removes the double-colon usage and adds the directory dependencies! Differential Revision: https://phabricator.services.mozilla.com/D69019
Diffstat (limited to 'coreconf/ruleset.mk')
-rw-r--r--coreconf/ruleset.mk11
1 files changed, 0 insertions, 11 deletions
diff --git a/coreconf/ruleset.mk b/coreconf/ruleset.mk
index e9646eecf..43ea718e4 100644
--- a/coreconf/ruleset.mk
+++ b/coreconf/ruleset.mk
@@ -203,15 +203,4 @@ ifdef SYSTEM_INCL_DIR
YOPT = -Y$(SYSTEM_INCL_DIR)
endif
-ifdef DIRS
-define SUBMAKE
-+@echo "cd $2; $(MAKE) $1"
-$(IGNORE_ERROR)@$(MAKE) -C $(2) $(1)
-@$(CLICK_STOPWATCH)
-
-endef
-
- LOOP_OVER_DIRS = $(foreach dir,$(DIRS),$(call SUBMAKE,$@,$(dir)))
-endif
-
MK_RULESET = included