Skip to content

Commit 33e8036

Browse files
authored
run-gnu-test.sh: Fix nproc broken by cache (#9735)
1 parent ccd4bbd commit 33e8036

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/run-gnu-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ echo "path_UUTILS='${path_UUTILS}'"
2828
echo "path_GNU='${path_GNU}'"
2929

3030
# Use GNU nproc for *BSD
31-
MAKEFLAGS="${MAKEFLAGS} -j $(${path_GNU}/src/nproc)"
31+
NPROC=$(command -v ${path_GNU}/src/nproc||command -v nproc)
32+
MAKEFLAGS="${MAKEFLAGS} -j ${NPROC}"
3233
export MAKEFLAGS
3334
###
3435

0 commit comments

Comments
 (0)