mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-11 17:19:01 +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
|
||||
|
||||
export ROOT=`pwd`
|
||||
export NCORES=`sysctl -n hw.ncpu`
|
||||
export NCORES=`nproc --all`
|
||||
|
||||
while getopts ":ih" opt; do
|
||||
case ${opt} in
|
||||
@ -43,7 +43,6 @@ echo -n "[1/9] Updating submodules..."
|
||||
popd
|
||||
} > $ROOT/build/Build.log # Capture all command output
|
||||
|
||||
|
||||
echo -n "[2/9] Changing date in version..."
|
||||
{
|
||||
# change date in version
|
||||
@ -120,3 +119,4 @@ echo -n "[9/9] Generating Linux app..."
|
||||
$ROOT/build/src/BuildLinuxImage.sh
|
||||
fi
|
||||
} &> $ROOT/build/Build.log # Capture all command output
|
||||
echo "done"
|
||||
|
Loading…
x
Reference in New Issue
Block a user