compile_debug: don't assume nproc exists either.
This commit is contained in:
parent
4c25b2ed76
commit
1084517451
1 changed files with 9 additions and 1 deletions
|
@ -1 +1,9 @@
|
||||||
cmake -G "Unix Makefiles" -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug && 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=Debug && cmake --build build -- -j $BUILD_PROC
|
||||||
|
|
Loading…
Reference in a new issue