Skip to content

Commit 7b07cd4

Browse files
committed
add dynamic_list to aarch64 builds, issue 170
1 parent add531d commit 7b07cd4

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

tools/build_steps.sh

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ function do_build_lib {
143143
Linux-aarch64)
144144
local bitness=64
145145
local target=ARMV8
146+
# temporarily limit the kernels for travis until there is data
147+
# see https://github.com/MacPython/openblas-libs/issues/170
148+
local dynamic_list="ARMV8 CORTEXA57 THUNDERX"
146149
;;
147150
Darwin-arm64)
148151
local bitness=64
@@ -177,11 +180,18 @@ function do_build_lib {
177180
git config --global --add safe.directory '*'
178181
pushd OpenBLAS
179182
patch_source
180-
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \
181-
make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
182-
USE_OPENMP=0 NUM_THREADS=64 \
183-
BINARY=$bitness $interface_flags TARGET=$target \
184-
DYNAMIC_LIST="$dynamic_list" > /dev/null
183+
if [ -v dynamic_list ]; then
184+
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \
185+
make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
186+
USE_OPENMP=0 NUM_THREADS=64 \
187+
BINARY=$bitness $interface_flags TARGET=$target \
188+
DYNAMIC_LIST="$dynamic_list" > /dev/null
189+
else
190+
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \
191+
make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
192+
USE_OPENMP=0 NUM_THREADS=64 \
193+
BINARY=$bitness $interface_flags TARGET=$target > /dev/null
194+
fi
185195
make PREFIX=$BUILD_PREFIX $interface_flags install
186196
popd
187197
stop_spinner

0 commit comments

Comments
 (0)