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:
parent
f1c36f2e6b
commit
e34eb58ac7
2 changed files with 2 additions and 1 deletions
|
@ -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)]
|
||||
|
|
|
@ -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")
|
||||
])
|
||||
])
|
||||
|
|
Loading…
Add table
Reference in a new issue