Skip to content

Commit 863d2fd

Browse files
committed
Pass -jN from Make to BOOTSTRAP_ARGS
Enables the same functionality as `x -jN` in Make by passing the `-jN` arg from Make to the `BOOTSTRAP_ARGS` args if it is specified. Signed-off-by: onur-ozkan <[email protected]>
1 parent bf98263 commit 863d2fd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bootstrap/mk/Makefile.in

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Q := @
66
BOOTSTRAP_ARGS :=
77
endif
88

9+
# Pass `-jN` to the bootstrap if it is specified.
10+
ifdef MAKEFLAGS
11+
ifneq (,$(findstring -j, $(MAKEFLAGS)))
12+
BOOTSTRAP_ARGS += $(filter -j%, $(MAKEFLAGS))
13+
endif
14+
endif
15+
916
BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py
1017

1118
all:

0 commit comments

Comments
 (0)