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

Commit

Permalink
update openblas suffix for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed Jul 11, 2019
1 parent 274a124 commit a51d810
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ sources = [

]

# Bash recipe for building across all platforms
# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/scs-*
flags="DLONG=1 USE_OPENMP=0"
blasldflags="-L${prefix}/lib"
if [[ ${nbits} == 32 ]]; then blasldflags="${blasldflags} -lopenblas"; else flags="${flags} BLAS64=1 BLASSUFFIX=_64_"; blasldflags="${blasldflags} -lopenblas64_"; fi
# see https://github.com/JuliaPackaging/Yggdrasil/blob/0bc1abd56fa176e3d2cc2e48e7bf85a26c948c40/OpenBLAS/build_tarballs.jl#L23
if [[ ${nbits} == 64 ]] && [[ ${target} != aarch64* ]]; then
flags="${flags} BLAS64=1 BLASSUFFIX=_64_"
blasldflags+=" -lopenblas64_"
else
blasldflags+=" -lopenblas"
fi
make BLASLDFLAGS="${blasldflags}" ${flags} out/libscsdir.${dlext}
make BLASLDFLAGS="${blasldflags}" ${flags} out/libscsindir.${dlext}
mv out/libscs* ${prefix}/lib/
Expand Down Expand Up @@ -65,4 +71,3 @@ dependencies = [

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 comments on commit a51d810

Please sign in to comment.