Skip to content

Commit 12a2b7b

Browse files
committed
fix copy for 32-bit
1 parent 8fa61bc commit 12a2b7b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tools/build_openblas.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,13 @@ make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
106106
MAX_STACK_ALLOC=2048 \
107107
$interface_flags
108108
make PREFIX=$openblas_root/$build_bits $interface_flags install
109-
DLL_BASENAME=libscipy_openblas${SYMBOLSUFFIX}${LIBNAMESUFFIX}
110-
cp -f "${DLL_BASENAME}.dll.a" "$openblas_root/$build_bits/lib/"
109+
DLL_BASENAME=libscipy_openblas${LIBNAMESUFFIX}
110+
if [ -f "${DLL_BASENAME}.dll.a" ]; then
111+
cp -f "${DLL_BASENAME}.dll.a" "$openblas_root/$build_bits/lib/"
112+
else
113+
# 32-bit build somehow does not put scipy_ into the import lib name
114+
cp -f "libopenblas.dll.a" "$openblas_root/$build_bits/lib/"
115+
fi
111116

112117
# OpenBLAS does not build a symbol-suffixed static library on Windows:
113118
# do it ourselves. On 32-bit builds, the objcopy.def names need a '_' prefix

0 commit comments

Comments
 (0)