From b0ca27d677b2f080ed64d56e4d68bf7bb3219aa4 Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Thu, 23 Jun 2022 18:30:33 +0100 Subject: [PATCH] Fix for CFLAGS This line is wiping out the set `CFLAGS` for the cross-compile: ``` && CFLAGS="-fvisibility=protected" make BUFFERSIZE=20 ... ``` https://github.com/MacPython/openblas-libs/runs/6817632611 Put the existing CFLAGS back. --- travis-ci/build_steps.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/travis-ci/build_steps.sh b/travis-ci/build_steps.sh index 69e5d3a0..4c0f5c41 100644 --- a/travis-ci/build_steps.sh +++ b/travis-ci/build_steps.sh @@ -133,8 +133,7 @@ function do_build_lib { ;; Darwin-arm64) local bitness=64 - # https://github.com/xianyi/OpenBLAS/issues/3659 - local target_flags="TARGET=VORTEX NO_EXPRECISION=1" + local target_flags="TARGET=VORTEX" ;; *-s390x) local bitness=64 @@ -164,7 +163,7 @@ function do_build_lib { git config --global --add safe.directory '*' (cd OpenBLAS \ && patch_source \ - && CFLAGS="-fvisibility=protected" make BUFFERSIZE=20 DYNAMIC_ARCH=1 USE_OPENMP=0 NUM_THREADS=64 BINARY=$bitness $interface64_flags $target_flags > /dev/null \ + && CFLAGS="$CFLAGS -fvisibility=protected" make BUFFERSIZE=20 DYNAMIC_ARCH=1 USE_OPENMP=0 NUM_THREADS=64 BINARY=$bitness $interface64_flags $target_flags > /dev/null \ && make PREFIX=$BUILD_PREFIX $interface64_flags install ) stop_spinner local version=$(cd OpenBLAS && git describe --tags --abbrev=8)