0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 14:31:11 +01:00

tools/buildrocks: Detect number of processors to set make job count.

This commit is contained in:
Jason Volk 2018-06-14 19:44:18 -06:00
parent 0d688b386b
commit b33b37e9e0

View file

@ -48,5 +48,6 @@ run git submodule update --init deps/rocksdb
run cd deps/rocksdb run cd deps/rocksdb
run git checkout $BRANCH run git checkout $BRANCH
CFLAGS="-fPIC -frtti -DROCKSDB_USE_RTTI" run make -j4 $LINKAGE NJOBS=`nproc`
CFLAGS="-fPIC -frtti -DROCKSDB_USE_RTTI" run make -j$NJOBS $LINKAGE
run cd $USERDIR # Return to user's original directory run cd $USERDIR # Return to user's original directory