Skip to content

Commit 98a5102

Browse files
committed
configure.ac: in --enable-all-asm handler, support only x86_64 and aarch64, and enable sp-asm only for them, to avoid "ASM not available for CPU" error from sp-asm handler.
1 parent 8d0047f commit 98a5102

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

configure.ac

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -993,27 +993,34 @@ then
993993
AC_MSG_ERROR([--enable-all-asm is incompatible with --disable-armasm])
994994
fi
995995

996-
if test "$ENABLED_SP" != "no"
997-
then
998-
ENABLED_SP_ASM=yes
999-
if test "$ENABLED_SP" = ""
1000-
then
1001-
ENABLED_SP=yes
1002-
fi
1003-
fi
1004-
1005996
case "$host_cpu" in
1006997
*x86_64*|*amd64*)
1007998
if test "$enable_intelasm" = ""
1008999
then
10091000
enable_intelasm=yes
10101001
fi
1002+
if test "$ENABLED_SP" != "no"
1003+
then
1004+
ENABLED_SP_ASM=yes
1005+
if test "$ENABLED_SP" = ""
1006+
then
1007+
ENABLED_SP=yes
1008+
fi
1009+
fi
10111010
;;
1012-
*aarch64*|*arm*|*cortex*)
1011+
*aarch64*)
10131012
if test "$enable_armasm" = ""
10141013
then
10151014
enable_armasm=yes
10161015
fi
1016+
if test "$ENABLED_SP" != "no"
1017+
then
1018+
ENABLED_SP_ASM=yes
1019+
if test "$ENABLED_SP" = ""
1020+
then
1021+
ENABLED_SP=yes
1022+
fi
1023+
fi
10171024
;;
10181025
esac
10191026
fi

0 commit comments

Comments
 (0)