Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Update build_tarballs.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-pablo-vielma authored Sep 18, 2018
1 parent 3839f39 commit 6daad24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ sources = [
script = raw"""
cd $WORKSPACE/srcdir
cd scs-2.0.2/
# Mac OS and Windows do not have openmp by default
if [ $target = "x86_64-apple-darwin14" ] || [ $target = "x86_64-w64-mingw32" ] || [ $target = "i686-w64-mingw32" ]; then
flags="DLONG=1"
else
flags="DLONG=1 USE_OPENMP=1"
fi
if [ $target = "x86_64-apple-darwin14" ]; then
install_name_tool -id libopenblas64_.dylib ${prefix}/lib/libopenblas64_.0.3.0.dev.dylib
fi
blasldflags="-L${prefix}/lib"
if [[ ${nbits} == 32 ]]; then blasldflags="${blasldflags} -lopenblas"; else flags="${flags} BLAS64=1 BLASSUFFIX=_64_"; blasldflags="${blasldflags} -lopenblas64_"; fi
make BLASLDFLAGS="${blasldflags}" ${flags} out/libscsdir.${dlext}
Expand Down

0 comments on commit 6daad24

Please sign in to comment.