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:
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 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
|
||||||
|
|
Loading…
Reference in a new issue