diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-29 18:02:02 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-29 18:09:02 -0400 |
commit | c5b349e1c593031c200abc4b6f6e759af34e5b02 (patch) | |
tree | 997e548dbd24b8210cd0d7dd4cbf99724eef6ae6 /sim/ppc/configure.ac | |
parent | 952170707bb525babcd48f6e907512e36a4982ca (diff) | |
download | gdb-c5b349e1c593031c200abc4b6f6e759af34e5b02.zip gdb-c5b349e1c593031c200abc4b6f6e759af34e5b02.tar.gz gdb-c5b349e1c593031c200abc4b6f6e759af34e5b02.tar.bz2 |
sim: ppc: enable -Wno-format for mingw targets
This mirrors what we do for other builds already.
Diffstat (limited to 'sim/ppc/configure.ac')
-rw-r--r-- | sim/ppc/configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index 21913a9..9bd0ab7 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -602,6 +602,11 @@ WERROR_CFLAGS="" if test "${ERROR_ON_WARNING}" = yes ; then WERROR_CFLAGS="-Werror" fi +dnl Enable -Wno-format by default when using gcc on mingw since many +dnl GCC versions complain about %I64. +case "${host}" in + *-*-mingw32*) WERROR_CFLAGS="$WERROR_CFLAGS -Wno-format" ;; +esac AC_SUBST(WERROR_CFLAGS) AC_ARG_ENABLE(sim-warnings, |