From 4c8301b6c0c6f02c53efa7b1ed7639991364b49c Mon Sep 17 00:00:00 2001 From: l3iggs Date: Sat, 26 Jul 2014 19:03:21 -0700 Subject: [PATCH] detect cores available for build --- libretro-config.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libretro-config.sh b/libretro-config.sh index 90ca902e..157e8eda 100755 --- a/libretro-config.sh +++ b/libretro-config.sh @@ -24,6 +24,12 @@ fi echo "$ARCH CPU detected" +if command -v nproc >/dev/null; then + JOBS=$(nproc) +else + JOBS=4 +fi + # Platform Assignment [ -z "$platform" ] && platform="$(uname)" case "$platform" in