compile_release: don't assume nproc exists.

This commit is contained in:
Marco Cawthorne 2021-01-16 22:46:47 +01:00
parent 2f8e66a240
commit 4c25b2ed76
1 changed files with 9 additions and 1 deletions

View File

@ -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