Skip to content

Commit ed45822

Browse files
authored
Merge pull request #1 from shinnya/make-j-flag
Use -j option when running make.
2 parents 635faf2 + f3c7a39 commit ed45822

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ script:
1414

1515
matrix:
1616
allow_failures:
17+
- rust: beta
1718
- rust: nightly
1819

1920
env:

install_deps.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
set -eux
44

55
BUILD_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/
1219
git checkout a6862d1
1320
./autogen.sh
1421
./configure --disable-shared --with-pic --prefix $BUILD_DIR
15-
make install
22+
make $MAKE_FLAGS install
1623
cd ../
1724

1825
#
@@ -23,7 +30,7 @@ cd jerasure/
2330
git checkout de1739c
2431
autoreconf --force --install
2532
CFLAGS="-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
2734
cd ../
2835

2936
#
@@ -39,4 +46,4 @@ if [ "$(uname)" == "Darwin" ]; then
3946
fi
4047
CFLAGS=$CFLAGS LIBS="-lJerasure" LDFLAGS="-L${BUILD_DIR}/lib" ./configure --disable-shared --with-pic --prefix $BUILD_DIR
4148
patch -p1 < ../liberasurecode.patch # Applies a patch for building static library
42-
make install
49+
make $MAKE_FLAGS install

0 commit comments

Comments
 (0)