Skip to content

Commit

Permalink
use nproc instead of setting a fixed number
Browse files Browse the repository at this point in the history
Signed-off-by: shubham <shubham.bajpai@mayadata.io>
  • Loading branch information
shubham14bajpai committed Nov 9, 2020
1 parent cb2661c commit 920d4e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ git clone https://github.com/openebs/cstor.git && \
# build libcstor
sh autogen.sh && \
./configure --with-zfs-headers=$PWD/cstor/include --with-spl-headers=$PWD/cstor/lib/libspl/include && \
make -j4 && \
make -j$(nproc) && \
make install && \
ldconfig

Expand All @@ -39,7 +39,7 @@ cd cstor && \
sh autogen.sh && \
./configure --enable-uzfs=yes --with-config=user --with-jemalloc --with-libcstor=$PWD/../include && \
make clean && \
make -j4 && \
make -j$(nproc) && \
cd /libcstor

# build zrepl
Expand Down

0 comments on commit 920d4e1

Please sign in to comment.