Added multi-threaded compilation to make_and_run script

This commit is contained in:
OmniaX 2024-09-02 16:34:50 +02:00
parent db0fa0b67c
commit 9b7873eda1
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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
fi