macOS snapshot: build using `make -j$(nproc)` as it's more efficient than `make -j`
parent
ff95467efb
commit
079a57d4c0
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
# Set the number of threads
|
||||||
|
NTHREADS=$(nproc)
|
||||||
|
|
||||||
##
|
##
|
||||||
## Clone Dynare
|
## Clone Dynare
|
||||||
##
|
##
|
||||||
|
@ -22,9 +25,8 @@ fi
|
||||||
cd "$ROOTDIR"
|
cd "$ROOTDIR"
|
||||||
[[ -f configure ]] || autoreconf -si
|
[[ -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"
|
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"$NTHREADS" pdf html
|
||||||
make -j pdf
|
make -j"$NTHREADS"
|
||||||
make -j html
|
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -73,7 +75,7 @@ cp "$ROOTDIR"/dynare++/src/dynare++ "$PKGFILES"
|
||||||
cd "$ROOTDIR"/mex/build/matlab
|
cd "$ROOTDIR"/mex/build/matlab
|
||||||
make clean
|
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"
|
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
|
cd "$ROOTDIR"/macOS
|
||||||
cp -L "$ROOTDIR"/mex/matlab/* "$PKGFILES"/mex/matlab/maci64-9.4-9.7
|
cp -L "$ROOTDIR"/mex/matlab/* "$PKGFILES"/mex/matlab/maci64-9.4-9.7
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue