Needed to build for macOS. --- scripts/make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/make.sh b/scripts/make.sh index 306a7cd..59b1fd2 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -15,7 +15,7 @@ source ./configure UNSTRIPPED="generated/unstripped/$(basename "$OUTNAME")" # Try to keep one more cc invocation going than we have processors -[ -z "$CPUS" ] && CPUS=$(($(nproc)+1)) +[ -z "$CPUS" ] && CPUS=$(($(getconf _NPROCESSORS_ONLN)+1)) if [ -z "$SED" ] then -- 2.20.0.rc0.387.gc7a69e6b6c-goog
From 9ca543ba1ff233bf80ab1eeddf3dd6e88048e8d5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes <[email protected]> Date: Wed, 28 Nov 2018 11:52:33 -0800 Subject: [PATCH 1/2] macOS: use getconf rather than nproc for portability. Needed to build for macOS. --- scripts/make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make.sh b/scripts/make.sh index 306a7cd..59b1fd2 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -15,7 +15,7 @@ source ./configure UNSTRIPPED="generated/unstripped/$(basename "$OUTNAME")" # Try to keep one more cc invocation going than we have processors -[ -z "$CPUS" ] && CPUS=$(($(nproc)+1)) +[ -z "$CPUS" ] && CPUS=$(($(getconf _NPROCESSORS_ONLN)+1)) if [ -z "$SED" ] then -- 2.20.0.rc0.387.gc7a69e6b6c-goog
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
