Skip to content

Commit b11431e

Browse files
committed
Auto merge of rust-lang#116108 - onur-ozkan:support-make-jobs-flag, r=Mark-Simulacrum
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` if it is specified.
2 parents ca62d2c + 863d2fd commit b11431e

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)