From 7299a38ef7a6eced22b9506e0f68416fdb06986b Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Fri, 8 Oct 2021 14:29:08 -0400 Subject: [PATCH] Drop support for native compilation on 32-bit Cygwin * configure.ac [i686-pc-cygwin]: Don't allow native compilation unless ENABLE_NATIVE=yes. (Bug#50666) --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index e6ffea0637..0ddf917de2 100644 --- a/configure.ac +++ b/configure.ac @@ -3814,6 +3814,13 @@ AC_DEFUN HAVE_NATIVE_COMP=no LIBGCCJIT_LIBS= LIBGCCJIT_CFLAGS= +if test "$canonical" = i686-pc-cygwin && \ + test "${with_native_compilation}" != no && \ + test "x${NATIVE_ENABLED}" != xyes; then + AC_MSG_ERROR([Native compilation is not supported on 32-bit Cygwin. +If you want to try it anyway, reconfigure with NATIVE_ENABLED=yes.]) +fi + if test "${with_native_compilation}" != "no"; then if test "${HAVE_PDUMPER}" = no; then AC_MSG_ERROR(['--with-native-compilation' requires '--with-dumping=pdumper']) -- 2.33.0