macOS snapshot: build using `make -j$(nproc)` as it's more efficient than `make -j`

time-shift
Houtan Bastani 2019-09-20 14:43:48 +02:00
parent ff95467efb
commit 079a57d4c0
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 6 additions and 4 deletions

View File

@ -2,6 +2,9 @@
set -ex
# Set the number of threads
NTHREADS=$(nproc)
##
## Clone Dynare
##
@ -22,9 +25,8 @@ fi
cd "$ROOTDIR"
[[ -f configure ]] || autoreconf -si
CC=gcc-9 CXX=g++-9 ./configure --with-matlab=/Applications/MATLAB_R2016b.app MATLAB_VERSION=R2016b --with-matio=/usr/local --with-gsl=/usr/local --with-slicot=/usr/local --disable-octave PACKAGE_VERSION="$VERSION" PACKAGE_STRING="dynare $VERSION"
make -j
make -j pdf
make -j html
make -j"$NTHREADS" pdf html
make -j"$NTHREADS"
##
@ -73,7 +75,7 @@ cp "$ROOTDIR"/dynare++/src/dynare++ "$PKGFILES"
cd "$ROOTDIR"/mex/build/matlab
make clean
CC=gcc-9 CXX=g++-9 ./configure --with-matlab=/Applications/MATLAB_R2019b.app MATLAB_VERSION=R2019b --with-matio=/usr/local --with-gsl=/usr/local --with-slicot=/usr/local PACKAGE_VERSION="$VERSION" PACKAGE_STRING="dynare $VERSION"
make -j
make -j"$NTHREADS"
cd "$ROOTDIR"/macOS
cp -L "$ROOTDIR"/mex/matlab/* "$PKGFILES"/mex/matlab/maci64-9.4-9.7