compile_release: don't assume nproc exists.
This commit is contained in:
parent
2f8e66a240
commit
4c25b2ed76
1 changed files with 9 additions and 1 deletions
|
@ -1 +1,9 @@
|
||||||
cmake -G "Unix Makefiles" -H. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build -- -j$(nproc)
|
#!/bin/sh
|
||||||
|
|
||||||
|
if ! [ -x "$(command -v nproc)" ]; then
|
||||||
|
BUILD_PROC=1
|
||||||
|
else
|
||||||
|
BUILD_PROC=$(nproc)
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake -G "Unix Makefiles" -H. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build -- -j $BUILD_PROC
|
||||||
|
|
Loading…
Reference in a new issue