mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 11:18:51 +02:00
tools/buildrocks: Detect number of processors to set make job count.
This commit is contained in:
parent
0d688b386b
commit
b33b37e9e0
1 changed files with 2 additions and 1 deletions
|
@ -48,5 +48,6 @@ run git submodule update --init deps/rocksdb
|
|||
|
||||
run cd deps/rocksdb
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue