Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit 32be959

Browse files
committed
add jobs control, from issue 3187
1 parent 7404cee commit 32be959

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ endif
1111

1212
URAM := $(shell $(RUNINTERP) -c "import sys; print 4.5 if sys.maxint>1<<32 else 2.5")
1313

14+
JOBS=$(subst -j,--make-jobs ,$(filter -j%, $(MAKEFLAGS)))
15+
1416
.PHONY: pypy-c cffi_imports
1517

1618
pypy-c:
@@ -33,12 +35,7 @@ endif
3335
@echo "===================================================================="
3436
@echo
3537
@sleep 5
36-
cd pypy/goal && $(RUNINTERP) ../../rpython/bin/rpython -Ojit targetpypystandalone.py
37-
38-
# Note: the -jN option, or MAKEFLAGS=-jN, are not usable. They are
39-
# replaced with an opaque --jobserver option by the time this Makefile
40-
# runs. We cannot get their original value either:
41-
# http://lists.gnu.org/archive/html/help-make/2010-08/msg00106.html
38+
cd pypy/goal && $(RUNINTERP) ../../rpython/bin/rpython $(JOBS) -Ojit targetpypystandalone.py
4239

4340
cffi_imports: pypy-c
4441
PYTHONPATH=. pypy/goal/pypy-c pypy/tool/build_cffi_imports.py || /bin/true

0 commit comments

Comments
 (0)