https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119510
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So what about
--- maintainer-scripts/gcc_release.jj 2025-03-28 15:44:23.714526549 +0100
+++ maintainer-scripts/gcc_release 2025-03-28 18:06:57.286295725 +0100
@@ -267,9 +267,17 @@ EOF
esac
fi
contrib/gcc_build -d ${SOURCE_DIRECTORY} -o ${OBJECT_DIRECTORY} \
- -c "--enable-languages=default,cobol --enable-generated-files-in-srcdir
--disable-multilib" \
+ -c "--enable-generated-files-in-srcdir --disable-multilib" \
-m "-j$num_cpus" build || \
error "Could not rebuild GCC"
+ cd ${OBJECT_DIRECTORY}/gcc
+ all_languages=`sed -n -e '/"all_languages"/s/^.*=//p' config.status \
+ | sed -e 's/"//g'`
+ for lang in $all_languages; do
+ make $lang.srcextra $lang.srcinfo $lang.srcman || \
+ error "Could not build GCC $lang source extras"
+ done
+ cd ${SOURCE_DIRECTORY}
fi
# Move message catalogs to source directory.
I.e. regardless of what languages we get or don't get configured build the
extras for all languages?
Using --enable-languages=default,cobol has also the drawback that the script
will only work on the trunk and not on 14/13/12 branches anymore.