Skip to content

Commit

Permalink
toolchain: use FAST_MATH_LIBS if no reflapack was requested
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zero authored and oschuett committed Apr 12, 2020
1 parent 382682f commit d3bb141
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/toolchain/scripts/install_mathlibs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ case "$FAST_MATH_MODE" in
;;
esac

if [ "$with_reflapack" = "__DONTUSE__" ] ; then
# if we don't build the refereence blas/lapack implementations,
# make sure we still link against a BLAS/LAPACK implementation in *dbg profiles
export REF_MATH_CFLAGS="${FAST_MATH_CFLAGS}"
export REF_MATH_LDFLAGS="${FAST_MATH_LDFLAGS}"
export REF_MATH_LIBS="${FAST_MATH_LIBS}"
fi

if [ $ENABLE_VALGRIND = "__TRUE__" ] ; then
export MATH_CFLAGS="${REF_MATH_CFLAGS}"
export MATH_LDFLAGS="${REF_MATH_LDFLAGS}"
Expand Down

0 comments on commit d3bb141

Please sign in to comment.