Alexandre Julliard : configure: Require PE cross-compilation for building on ARM64.

Alexandre Julliard julliard at winehq.org
Wed Mar 2 15:39:49 CST 2022


Module: wine
Branch: master
Commit: 11486a7b48aa43421ada5a557d892feabf27b372
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=11486a7b48aa43421ada5a557d892feabf27b372

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Mar  2 20:06:16 2022 +0100

configure: Require PE cross-compilation for building on ARM64.

There's no -mabi=ms option we could use on ARM64.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure    | 32 ++++----------------------------
 configure.ac |  8 ++++----
 2 files changed, 8 insertions(+), 32 deletions(-)

diff --git a/configure b/configure
index d757194be45..397bc7b71c5 100755
--- a/configure
+++ b/configure
@@ -6360,34 +6360,6 @@ printf "%s\n" "$wine_cv_float_abi" >&6; }
     TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi"
     ;;
   aarch64*)
-    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
-printf %s "checking whether $CC supports __builtin_ms_va_list... " >&6; }
-if test ${wine_cv_builtin_ms_va_list+y}
-then :
-  printf %s "(cached) " >&6
-else $as_nop
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdarg.h>
-int
-main (void)
-{
-void func(__builtin_ms_va_list *args);
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"
-then :
-  wine_cv_builtin_ms_va_list=yes
-else $as_nop
-  wine_cv_builtin_ms_va_list=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $wine_cv_builtin_ms_va_list" >&5
-printf "%s\n" "$wine_cv_builtin_ms_va_list" >&6; }
-    test $wine_cv_builtin_ms_va_list != no || as_fn_error $? "You need clang >= 5.0 to build Wine for arm64." "$LINENO" 5
     enable_wow64=${enable_wow64:-yes}
     enable_wow64win=${enable_wow64win:-yes}
     ;;
@@ -11794,6 +11766,10 @@ esac
 
 fi
 
+case $host_cpu in
+  aarch64*) test "x$CROSSTARGET" != x || as_fn_error $? "PE cross-compilation is required for ARM64, please install llvm-mingw." "$LINENO" 5 ;;
+esac
+
 
 if test "x$with_system_dllpath" != "x" -a "$CROSSCC" != "false"
 then
diff --git a/configure.ac b/configure.ac
index 7881af45e5b..a9d3ff9a85c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -193,10 +193,6 @@ case $host in
     TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi"
     ;;
   aarch64*)
-    AC_CACHE_CHECK([whether $CC supports __builtin_ms_va_list],wine_cv_builtin_ms_va_list,
-        [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>]], [[void func(__builtin_ms_va_list *args);]])],
-                      [wine_cv_builtin_ms_va_list=yes],[wine_cv_builtin_ms_va_list=no])])
-    test $wine_cv_builtin_ms_va_list != no || AC_MSG_ERROR([You need clang >= 5.0 to build Wine for arm64.])
     enable_wow64=${enable_wow64:-yes}
     enable_wow64win=${enable_wow64win:-yes}
     ;;
@@ -995,6 +991,10 @@ fi
 WINE_NOTICE_WITH(mingw,[test "x$CROSSTARGET" = "x"],
                  [MinGW compiler not found, cross-compiling PE files won't be supported.])
 
+case $host_cpu in
+  aarch64*) test "x$CROSSTARGET" != x || AC_MSG_ERROR([PE cross-compilation is required for ARM64, please install llvm-mingw.]) ;;
+esac
+
 dnl **** External libraries ****
 
 if test "x$with_system_dllpath" != "x" -a "$CROSSCC" != "false"




More information about the wine-cvs mailing list