diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-06 00:35:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-06 00:35:45 +0900 |
commit | e38a2ecffd51a2fe09548b322cb19293c6d024ef (patch) | |
tree | ecde59d1f0a6236b9ebf5c6b6bc300a02739e930 /defs/gmake.mk | |
parent | cf1adf985ab78507250db0e217a0fdd779e2c6e6 (diff) | |
download | ruby-e38a2ecffd51a2fe09548b322cb19293c6d024ef.tar.gz |
Run tests in more parallel
Diffstat (limited to 'defs/gmake.mk')
-rw-r--r-- | defs/gmake.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk index a4347ff318..7de43ced1c 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -4,6 +4,7 @@ reconfig config.status: export MAKE:=$(MAKE) override gnumake_recursive := $(if $(findstring n,$(firstword $(MFLAGS))),,+) override mflags := $(filter-out -j%,$(MFLAGS)) MSPECOPT += $(if $(filter -j%,$(MFLAGS)),-j) +nproc = $(subst -j,,$(filter -j%,$(MFLAGS))) CHECK_TARGETS := great exam love check test check% test% btest% # expand test targets, and those dependents @@ -90,6 +91,8 @@ sudo-precheck: test yes-test-testframework no-test-testframework install-prereq: sudo-precheck yes-test-all no-test-all: install endif +yes-test-bundler-parallel: PARALLELRSPECOPTS += $(if $(nproc),-n$(shell expr $(nproc) + $(nproc) / 2)) + # Cross reference needs to parse all files at once love install reinstall: RDOCFLAGS = --force-update |