Skip to content

Commit 935a188

Browse files
committed
external_deps: deduplicate the nproc guess
1 parent 0092988 commit 935a188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

external_deps/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,9 +1556,9 @@ fi
15561556
CURL="$(command -v curl)" || log ERROR "Command 'curl' not found"
15571557

15581558
# Enable parallel build
1559-
export MAKEFLAGS="-j`nproc 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 1`"
1559+
export CMAKE_BUILD_PARALLEL_LEVEL="$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 1)"
1560+
export MAKEFLAGS="-j${CMAKE_BUILD_PARALLEL_LEVEL}"
15601561
export SCONSFLAGS="${MAKEFLAGS}"
1561-
export CMAKE_BUILD_PARALLEL_LEVEL="$(nproc 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 1)"
15621562

15631563
# Setup platform
15641564
platform="${1}"; shift

0 commit comments

Comments
 (0)