configure: Also disable format warnings for ARM64.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-11-26 17:03:49 +01:00
parent b0ab1b7602
commit ecf00292db
2 changed files with 32 additions and 0 deletions

31
configure vendored
View File

@ -10460,6 +10460,37 @@ fi
$as_echo "$ac_cv_crosscflags__mcx16" >&6; }
if test "x$ac_cv_crosscflags__mcx16" = xyes; then :
EXTRACROSSCFLAGS="$EXTRACROSSCFLAGS -mcx16"
fi ;;
aarch64) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the cross-compiler supports -Wno-format" >&5
$as_echo_n "checking whether the cross-compiler supports -Wno-format... " >&6; }
if ${ac_cv_crosscflags__Wno_format+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_wine_try_cflags_saved=$CFLAGS
ac_wine_try_cflags_saved_cc=$CC
ac_wine_try_cflags_saved_exeext=$ac_exeext
CFLAGS="$CFLAGS $EXTRACROSSCFLAGS -nostartfiles -nodefaultlibs -Wno-format"
CC="$CROSSCC"
ac_exeext=".exe"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int __cdecl mainCRTStartup(void) { return 0; }
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_crosscflags__Wno_format=yes
else
ac_cv_crosscflags__Wno_format=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
CFLAGS=$ac_wine_try_cflags_saved
CC=$ac_wine_try_cflags_saved_cc
ac_exeext=$ac_wine_try_cflags_saved_exeext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crosscflags__Wno_format" >&5
$as_echo "$ac_cv_crosscflags__Wno_format" >&6; }
if test "x$ac_cv_crosscflags__Wno_format" = xyes; then :
EXTRACROSSCFLAGS="$EXTRACROSSCFLAGS -Wno-format"
fi ;;
esac

View File

@ -1072,6 +1072,7 @@ then
WINE_TRY_CROSSCFLAGS([-Wformat-overflow])
WINE_TRY_CROSSCFLAGS([-Wnonnull])
WINE_TRY_CROSSCFLAGS([-mcx16]) ;;
aarch64) WINE_TRY_CROSSCFLAGS([-Wno-format]) ;;
esac
dnl Determine debug info format