From 79406c90004e698d81a0d9981ea6e627c44ee9c8 Mon Sep 17 00:00:00 2001 From: Grische <2787581+grische@users.noreply.github.com> Date: Sat, 19 Oct 2024 17:51:07 +0200 Subject: [PATCH] Replace grep cpuinfo with nproc Co-authored-by: Tobias <5702338+T0biii@users.noreply.github.com> (cherry picked from commit ef50cd114e5264e089f4ed4af0c4072a5d300e62) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 69456c4..01e1cbb 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ else GLUON_RELEASE := $(shell git describe --tags)~exp$(BUILD_NUMBER) endif -JOBS ?= $(shell cat /proc/cpuinfo | grep processor | wc -l) +JOBS ?= $(shell nproc) GLUON_MAKE := ${MAKE} -j ${JOBS} -C ${GLUON_BUILD_DIR} \ GLUON_RELEASE=${GLUON_RELEASE} \