invoke make from minsize.sh and debug.sh in FreeBSD and Solari compatible way

FreeBSD does not have `nproc` and Solaris (OpenIndiana) uses dmake which
requires space separator to recognize the jobs argument

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-11-25 23:12:43 +00:00
parent ccdabe7fe5
commit b935340448
2 changed files with 2 additions and 2 deletions

View file

@ -17,4 +17,4 @@ export LDFLAGS="$LDFLAGS -Wall -fsanitize=$sanitizers"
cmake ../ -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=/usr $@
make -j$(nproc || echo 1)
make -j $(nproc || sysctl -n hw.ncpu || echo 1)

View file

@ -13,4 +13,4 @@ export CXXFLAGS="$CXXFLAGS -flto -fno-exceptions"
cmake ../ -DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr $@
make -j$(nproc || echo 1)
make -j $(nproc || sysctl -n hw.ncpu || echo 1)