File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ script:
1414
1515matrix :
1616 allow_failures :
17+ - rust : beta
1718 - rust : nightly
1819
1920env :
Original file line number Diff line number Diff line change 33set -eux
44
55BUILD_DIR=$PWD
6+ MAKE_FLAGS=" "
7+
8+ # Please try and add other distributions.
9+ case " $( uname) " in
10+ " Linux" ) MAKE_FLAGS=" -j$( nproc) " ;;
11+ " Darwin" ) MAKE_FLAGS=" -j$( sysctl -n hw.ncpu) "
12+ esac
613
714#
815# gf-complete
@@ -12,7 +19,7 @@ cd gf-complete/
1219git checkout a6862d1
1320./autogen.sh
1421./configure --disable-shared --with-pic --prefix $BUILD_DIR
15- make install
22+ make $MAKE_FLAGS install
1623cd ../
1724
1825#
@@ -23,7 +30,7 @@ cd jerasure/
2330git checkout de1739c
2431autoreconf --force --install
2532CFLAGS=" -I${BUILD_DIR} /include" LDFLAGS=" -L${BUILD_DIR} /lib" ./configure --disable-shared --enable-static --with-pic --prefix $BUILD_DIR
26- make install
33+ make $MAKE_FLAGS install
2734cd ../
2835
2936#
@@ -39,4 +46,4 @@ if [ "$(uname)" == "Darwin" ]; then
3946fi
4047CFLAGS=$CFLAGS LIBS=" -lJerasure" LDFLAGS=" -L${BUILD_DIR} /lib" ./configure --disable-shared --with-pic --prefix $BUILD_DIR
4148patch -p1 < ../liberasurecode.patch # Applies a patch for building static library
42- make install
49+ make $MAKE_FLAGS install
You can’t perform that action at this time.
0 commit comments