compile_debug: don't assume nproc exists either.

This commit is contained in:
Marco Cawthorne 2021-01-16 22:47:31 +01:00
parent 4c25b2ed76
commit 1084517451

View file

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