diff --git a/configure b/configure index 85883099410..117a7ef23f2 100755 --- a/configure +++ b/configure @@ -8909,6 +8909,18 @@ $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} ;; esac + # Disable Rust for GCC 13 release. + case ${add_this_lang}:${language} in + yes:rust) + # Specifically requested language; tell them. + as_fn_error $? "Rust is not supported in GCC 13 release" "$LINENO" 5 + ;; + *:rust) + # Silently disable. + add_this_lang=unsupported + ;; + esac + # Disable jit if -enable-host-shared not specified # but not if building for Mingw. All code in Windows # is position independent code (PIC). diff --git a/configure.ac b/configure.ac index 2b612dce6e9..b3e9bbd2aa5 100644 --- a/configure.ac +++ b/configure.ac @@ -2150,6 +2150,18 @@ if test -d ${srcdir}/gcc; then ;; esac + # Disable Rust for GCC 13 release. + case ${add_this_lang}:${language} in + yes:rust) + # Specifically requested language; tell them. + AC_MSG_ERROR([Rust is not supported in GCC 13 release]) + ;; + *:rust) + # Silently disable. + add_this_lang=unsupported + ;; + esac + # Disable jit if -enable-host-shared not specified # but not if building for Mingw. All code in Windows # is position independent code (PIC).