Added multi-threaded compilation to make_and_run script
This commit is contained in:
parent
db0fa0b67c
commit
9b7873eda1
2 changed files with 4 additions and 4 deletions
2
compile
2
compile
|
|
@ -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 -j$(grep -c ^processor /proc/cpuinfo)
|
mingw32-make.exe -j16
|
||||||
cd ..
|
cd ..
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
mkdir -p ./Release/lib
|
mkdir -p ./Release/lib
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
printf "\n============================================[ Building Library ]============================================\n\n"
|
printf "\n============================================[ Building Library ]============================================\n\n"
|
||||||
\cp -r ../extra/* ./
|
\cp -r ../extra/* ./
|
||||||
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
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
|
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
|
||||||
mingw32-make.exe
|
mingw32-make.exe -j16
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue