Skip to content

Commit

Permalink
fix(build): limit default parallelism to 8 cores (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksqsf authored Sep 2, 2024
1 parent d7add39 commit aea8154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ prefix ?= $(DESTDIR)/usr
endif

ifndef NOPARALLEL
export MAKEFLAGS+=" -j$(( $(nproc) + 1)) "
export MAKEFLAGS+=" -j$$(( $$(nproc 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 8) + 1)) "
endif

debug install-debug uninstall-debug test-debug: build ?= debug
Expand Down
2 changes: 1 addition & 1 deletion deps.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ rime_root = $(CURDIR)
src_dir = $(rime_root)/deps

ifndef NOPARALLEL
export MAKEFLAGS+=" -j$(( $(nproc) + 1)) "
export MAKEFLAGS+=" -j$$(( $$(nproc 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 8) + 1)) "
endif

build ?= build
Expand Down

0 comments on commit aea8154

Please sign in to comment.