mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 11:19:09 +08:00
build script: use nproc on linux
This commit is contained in:
parent
9667c4b323
commit
4548177820
4
BuildLinux.sh
Normal file → Executable file
4
BuildLinux.sh
Normal file → Executable file
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export ROOT=`pwd`
|
export ROOT=`pwd`
|
||||||
export NCORES=`sysctl -n hw.ncpu`
|
export NCORES=`nproc --all`
|
||||||
|
|
||||||
while getopts ":ih" opt; do
|
while getopts ":ih" opt; do
|
||||||
case ${opt} in
|
case ${opt} in
|
||||||
@ -43,7 +43,6 @@ echo -n "[1/9] Updating submodules..."
|
|||||||
popd
|
popd
|
||||||
} > $ROOT/build/Build.log # Capture all command output
|
} > $ROOT/build/Build.log # Capture all command output
|
||||||
|
|
||||||
|
|
||||||
echo -n "[2/9] Changing date in version..."
|
echo -n "[2/9] Changing date in version..."
|
||||||
{
|
{
|
||||||
# change date in version
|
# change date in version
|
||||||
@ -120,3 +119,4 @@ echo -n "[9/9] Generating Linux app..."
|
|||||||
$ROOT/build/src/BuildLinuxImage.sh
|
$ROOT/build/src/BuildLinuxImage.sh
|
||||||
fi
|
fi
|
||||||
} &> $ROOT/build/Build.log # Capture all command output
|
} &> $ROOT/build/Build.log # Capture all command output
|
||||||
|
echo "done"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user