Skip to content

Commit

Permalink
Pass -jN from Make to BOOTSTRAP_ARGS
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
onur-ozkan committed Sep 23, 2023
1 parent bf98263 commit 863d2fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bootstrap/mk/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Q := @
BOOTSTRAP_ARGS :=
endif

# Pass `-jN` to the bootstrap if it is specified.
ifdef MAKEFLAGS
ifneq (,$(findstring -j, $(MAKEFLAGS)))
BOOTSTRAP_ARGS += $(filter -j%, $(MAKEFLAGS))
endif
endif

BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py

all:
Expand Down

0 comments on commit 863d2fd

Please sign in to comment.