From 9b7873eda1f81fea8e99c05fb29e17e8be94693b Mon Sep 17 00:00:00 2001 From: OmniaX Date: Mon, 2 Sep 2024 16:34:50 +0200 Subject: [PATCH] Added multi-threaded compilation to make_and_run script --- compile | 2 +- extra/make_and_run | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compile b/compile index e60d59f..6427cb4 100755 --- a/compile +++ b/compile @@ -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 -j$(grep -c ^processor /proc/cpuinfo) + mingw32-make.exe -j16 cd .. if [ $? -eq 0 ]; then mkdir -p ./Release/lib diff --git a/extra/make_and_run b/extra/make_and_run index 3aabd32..03c18c6 100755 --- a/extra/make_and_run +++ b/extra/make_and_run @@ -3,13 +3,13 @@ printf "\n============================================[ Building Library ]============================================\n\n" \cp -r ../extra/* ./ if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then - make + make -j$(grep -c ^processor /proc/cpuinfo) elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then - mingw32-make.exe + mingw32-make.exe -j16 fi if [ $? -eq 0 ]; then printf "\n==============================================[ Running Test ]==============================================\n\n" ./ostd_test printf "\n============================================================================================================\n\n" -fi \ No newline at end of file +fi