Added multi-threaded compilation to compile script

This commit is contained in:
OmniaX 2024-09-02 16:27:02 +02:00
parent 9892dc7745
commit db0fa0b67c
2 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
1866 1867

View file

@ -6,7 +6,7 @@ rm -r Release
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
cmake -B bin -S ./ cmake -B bin -S ./
cd bin cd bin
make make -j$(grep -c ^processor /proc/cpuinfo)
cd .. cd ..
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
mkdir -p ./Release/lib 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 elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
cmake -B bin -S ./ -G "MinGW Makefiles" cmake -B bin -S ./ -G "MinGW Makefiles"
cd bin cd bin
mingw32-make.exe mingw32-make.exe -j$(grep -c ^processor /proc/cpuinfo)
cd .. cd ..
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
mkdir -p ./Release/lib mkdir -p ./Release/lib
@ -59,4 +59,4 @@ elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
truncate -s 0 build.nr truncate -s 0 build.nr
echo $build_number >> build.nr echo $build_number >> build.nr
fi fi
fi fi