summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Sindholt <opensource@zhasha.com>2017-07-25 10:23:16 +0200
committerJoakim Sindholt <opensource@zhasha.com>2017-07-25 10:23:16 +0200
commitc3388226a012447771227feecfcb8b8974712760 (patch)
tree1c129214b334ecfd3fc33f0101846b30e5c5aaf4
parent17f6b583fa8add81d09c4a9643ba7574fbe8fc26 (diff)
build-libc: grep can count lines itself
-rw-r--r--bin/build-libc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build-libc.sh b/bin/build-libc.sh
index 66912f8..e97de68 100644
--- a/bin/build-libc.sh
+++ b/bin/build-libc.sh
@@ -17,7 +17,7 @@ Linux)
(
flock -x 200
- NCPU=$(($(cat /proc/cpuinfo | grep processor | wc -l) * 2))
+ NCPU=$(($(grep -c '^processor' /proc/cpuinfo) * 2))
if [[ ! -e "$OBJDIR/musl-revision" ||
"$(cat "$OBJDIR/musl-revision")" != "$MUSLREV" ]]; then