Skip to content

Commit 1ca5e24

Browse files
Error or warn users trying to build SP math assembly for MinGW as this is currently unsupported and will fail.
Fixes #10690.
1 parent 6f4b1fb commit 1ca5e24

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

configure.ac

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10485,6 +10485,23 @@ if test "$ENABLED_SP_MATH_ALL" = "yes" && test "$ENABLED_ASM" != "no"; then
1048510485
fi
1048610486
1048710487
10488+
if test "$ENABLED_SP_ASM" = "yes" && test "$ENABLED_SP" = "yes"; then
10489+
case $host_cpu in
10490+
*x86_64* | *amd64*)
10491+
case $host_os in
10492+
*mingw* | *cygwin* | *msys*)
10493+
if test "$enable_sp_asm" = "yes"; then
10494+
AC_MSG_ERROR([--enable-sp-asm is not supported for x86_64 Windows hosts (MinGW/Cygwin). Reconfigure without --enable-sp-asm to use the C SP implementation.])
10495+
else
10496+
AC_MSG_WARN([x86_64 SP assembly is not supported for Windows hosts (MinGW/Cygwin); disabling SP assembly and using the C implementation.])
10497+
ENABLED_SP_ASM=no
10498+
fi
10499+
;;
10500+
esac
10501+
;;
10502+
esac
10503+
fi
10504+
1048810505
if test "$ENABLED_SP_ASM" = "yes" && test "$ENABLED_SP" = "yes"; then
1048910506
if test "$ENABLED_SP_NONBLOCK" = "yes"; then
1049010507
AC_MSG_ERROR([SP non-blocking not supported with sp-asm])

0 commit comments

Comments
 (0)