Added multi-threaded compilation to compile script
This commit is contained in:
parent
9892dc7745
commit
db0fa0b67c
2 changed files with 4 additions and 4 deletions
2
build.nr
2
build.nr
|
|
@ -1 +1 @@
|
|||
1866
|
||||
1867
|
||||
|
|
|
|||
6
compile
6
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
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue