Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Schöning <schoning.christoph@gmail.com>2021-06-05 12:25:02 +0300
committerremi durand <remi-j.durand@thalesgroup.com>2021-06-05 12:43:14 +0300
commit4548177820bf6c3183133cee4c2f0b2763592372 (patch)
treef763140c9f8d208636c1a0b515f371cbc48fd9b2 /BuildLinux.sh
parent9667c4b3239bc47efa42fdc36cd464a1ed092f90 (diff)
build script: use nproc on linux
Diffstat (limited to 'BuildLinux.sh')
-rwxr-xr-x[-rw-r--r--]BuildLinux.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/BuildLinux.sh b/BuildLinux.sh
index d80d7c2ec..41d7b0114 100644..100755
--- a/BuildLinux.sh
+++ b/BuildLinux.sh
@@ -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"