1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Keep ARCH_OPTION for arm64

This commit is contained in:
Nobuyoshi Nakada 2021-01-22 23:40:32 +09:00
parent f1c36f2e6b
commit e34eb58ac7
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@
AC_DEFUN([RUBY_DEFAULT_ARCH], [
AC_MSG_CHECKING([arch option])
AS_CASE([$1],
[arm64], [],
[*64], [ARCH_FLAG=-m64],
[[i[3-6]86]], [ARCH_FLAG=-m32],
[AC_MSG_ERROR(unknown target architecture: $target_archs)]

View file

@ -39,7 +39,7 @@ AS_IF([test ${target_archs+set}], [
echo 'int main(){return 0;}' > conftest.c
AS_IF([$CC $CFLAGS $ARCH_FLAG -o conftest conftest.c > /dev/null 2>&1], [
rm -fr conftest.*
], [
], [test -z "$ARCH_FLAG"], [
RUBY_DEFAULT_ARCH("$target_archs")
])
])