aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Brown2021-10-29 11:38:55 -0400
committerKen Brown2021-10-31 19:30:25 -0400
commit6ba4e3b78c9ade565ebcb9fa0473c798e0bc0a7b (patch)
treea0bb31e40de75531e7f167a8ad5d6f59ad09fa76
parent7e15ee5bc93b1f4b00020cc2fd401fd9d1a6711a (diff)
downloademacs-6ba4e3b78c9ade565ebcb9fa0473c798e0bc0a7b.tar.gz
emacs-6ba4e3b78c9ade565ebcb9fa0473c798e0bc0a7b.zip
Drop support for native compilation on 32-bit Cygwin
* configure.ac (cygwin32-native-compilation): New option. [i686-pc-cygwin]: Don't allow native compilation unless that option is specified. (Bug#50666)
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e6ffea06378..6bc194d792f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -485,6 +485,7 @@ OPTION_DEFAULT_ON([zlib],[don't compile with zlib decompression support])
485OPTION_DEFAULT_ON([modules],[don't compile with dynamic modules support]) 485OPTION_DEFAULT_ON([modules],[don't compile with dynamic modules support])
486OPTION_DEFAULT_ON([threads],[don't compile with elisp threading support]) 486OPTION_DEFAULT_ON([threads],[don't compile with elisp threading support])
487OPTION_DEFAULT_OFF([native-compilation],[compile with Emacs Lisp native compiler support]) 487OPTION_DEFAULT_OFF([native-compilation],[compile with Emacs Lisp native compiler support])
488OPTION_DEFAULT_OFF([cygwin32-native-compilation],[use native compilation on 32-bit Cygwin])
488 489
489AC_ARG_WITH([file-notification],[AS_HELP_STRING([--with-file-notification=LIB], 490AC_ARG_WITH([file-notification],[AS_HELP_STRING([--with-file-notification=LIB],
490 [use a file notification library (LIB one of: yes, inotify, kqueue, gfile, w32, no)])], 491 [use a file notification library (LIB one of: yes, inotify, kqueue, gfile, w32, no)])],
@@ -3814,6 +3815,16 @@ source on this site:
3814HAVE_NATIVE_COMP=no 3815HAVE_NATIVE_COMP=no
3815LIBGCCJIT_LIBS= 3816LIBGCCJIT_LIBS=
3816LIBGCCJIT_CFLAGS= 3817LIBGCCJIT_CFLAGS=
3818if test "$canonical" = i686-pc-cygwin; then
3819 if test "${with_cygwin32_native_compilation}" = yes; then
3820 with_native_compilation=yes
3821 elif test "${with_native_compilation}" != no; then
3822 AC_MSG_ERROR([Native compilation is not supported on 32-bit Cygwin.
3823If you really want to try it anyway, use the configure option
3824'--with-cygwin32-native-compilation'.])
3825 fi
3826fi
3827
3817if test "${with_native_compilation}" != "no"; then 3828if test "${with_native_compilation}" != "no"; then
3818 if test "${HAVE_PDUMPER}" = no; then 3829 if test "${HAVE_PDUMPER}" = no; then
3819 AC_MSG_ERROR(['--with-native-compilation' requires '--with-dumping=pdumper']) 3830 AC_MSG_ERROR(['--with-native-compilation' requires '--with-dumping=pdumper'])