Fix nproc unavailable

This commit is contained in:
Will Rosecrans
2018-01-08 15:00:20 -08:00
parent 7acd169bef
commit e2105dfaad

View File

@@ -6,7 +6,7 @@ fi
mkdir -p build_cmake mkdir -p build_cmake
cd build_cmake cd build_cmake
cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=OFF -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release .. cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=OFF -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release ..
make -j $(command nproc || echo 12) make -j $(command nproc 2>/dev/null || echo 12)
cd examples cd examples
cd pybullet cd pybullet
if [ -e pybullet.dylib ]; then if [ -e pybullet.dylib ]; then