From db0fa0b67cb0daf4e549f2c9d72a27a772685aa6 Mon Sep 17 00:00:00 2001 From: OmniaX Date: Mon, 2 Sep 2024 16:27:02 +0200 Subject: [PATCH] Added multi-threaded compilation to compile script --- build.nr | 2 +- compile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.nr b/build.nr index 58d8972..824cab0 100644 --- a/build.nr +++ b/build.nr @@ -1 +1 @@ -1866 +1867 diff --git a/compile b/compile index cd0ae22..e60d59f 100755 --- a/compile +++ b/compile @@ -6,7 +6,7 @@ rm -r Release if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then cmake -B bin -S ./ cd bin - make + make -j$(grep -c ^processor /proc/cpuinfo) cd .. if [ $? -eq 0 ]; then mkdir -p ./Release/lib @@ -29,7 +29,7 @@ if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then cmake -B bin -S ./ -G "MinGW Makefiles" cd bin - mingw32-make.exe + mingw32-make.exe -j$(grep -c ^processor /proc/cpuinfo) cd .. if [ $? -eq 0 ]; then mkdir -p ./Release/lib @@ -59,4 +59,4 @@ elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then truncate -s 0 build.nr echo $build_number >> build.nr fi -fi \ No newline at end of file +fi