diff options
| author | onur-ozkan <work@onurozkan.dev> | 2023-09-23 23:58:43 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2023-09-23 23:58:43 +0300 |
| commit | 863d2fddd79c3096cd421278dab420d1f3b0de63 (patch) | |
| tree | 4c872df036e0e81fc019711333a446d0a4696b3b /src/bootstrap | |
| parent | bf982631df866498a295528ff0047207e881d55d (diff) | |
| download | rust-863d2fddd79c3096cd421278dab420d1f3b0de63.tar.gz rust-863d2fddd79c3096cd421278dab420d1f3b0de63.zip | |
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 <work@onurozkan.dev>
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/mk/Makefile.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bootstrap/mk/Makefile.in b/src/bootstrap/mk/Makefile.in index a9865e262fe..0b67079917c 100644 --- a/src/bootstrap/mk/Makefile.in +++ b/src/bootstrap/mk/Makefile.in @@ -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: |
