[PATCH] Enable job control in Makefile
Looks like the original limitation is no longer valid. The following patch works for me using GNU Make 4.2.1.
diff -r 0e9b9583d830 Makefile
--- a/Makefile Wed Mar 11 15:31:11 2020 +0100
+++ b/Makefile Sat Mar 14 00:37:12 2020 -0400
@@ -13,6 +13,8 @@
.PHONY: pypy-c cffi_imports
+JOBS=$(subst -j,--make-jobs ,$(filter -j%, $(MAKEFLAGS)))
+
pypy-c:
@echo
@echo "===================================================================="
@@ -33,12 +35,8 @@
@echo "===================================================================="
@echo
@sleep 5
- cd pypy/goal && $(RUNINTERP) ../../rpython/bin/rpython -Ojit targetpypystandalone.py
+ cd pypy/goal && $(RUNINTERP) ../../rpython/bin/rpython $(JOBS) -Ojit targetpypystandalone.py
-# Note: the -jN option, or MAKEFLAGS=-jN, are not usable. They are
-# replaced with an opaque --jobserver option by the time this Makefile
-# runs. We cannot get their original value either:
-# http://lists.gnu.org/archive/html/help-make/2010-08/msg00106.html
cffi_imports: pypy-c
PYTHONPATH=. pypy/goal/pypy-c pypy/tool/build_cffi_imports.py || /bin/true
PS: I can't open an MR because the projects disallows forks