Skip to content
Snippets Groups Projects
Commit 48b22a3f authored by Andrew Pinski's avatar Andrew Pinski
Browse files

toplevel: Error out if using --disable-libstdcxx with bootstrap [PR105474]


Bootstrapping and using --disable-libstdcxx will cause a build failure deep in compiling
stage2 so instead error out early in the toplevel configure so it is more user friendly.

Bootstrapped and tested on x86_64-linux-gnu.
Also made sure --disable-libstdcxx without --disable-bootstrap failed.

	PR bootstrap/105474

ChangeLog:

	* configure: Regenerate.
	* configure.ac: Error out if libstdc++ is not enabled
	with bootstrapping.

Signed-off-by: default avatarAndrew Pinski <quic_apinski@quicinc.com>
parent c8138acb
No related branches found
No related tags found
No related merge requests found
...@@ -10236,6 +10236,15 @@ case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in ...@@ -10236,6 +10236,15 @@ case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
;; ;;
esac esac
   
# Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
# Note C++ is always enabled for stage1 now.
case "$enable_bootstrap:${noconfigdirs}" in
yes:*target-libstdc++-v3*)
as_fn_error $? "bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
;;
esac
extrasub_build= extrasub_build=
for module in ${build_configdirs} ; do for module in ${build_configdirs} ; do
if test -z "${no_recursion}" \ if test -z "${no_recursion}" \
......
...@@ -3192,6 +3192,15 @@ case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in ...@@ -3192,6 +3192,15 @@ case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
;; ;;
esac esac
# Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
# Note C++ is always enabled for stage1 now.
case "$enable_bootstrap:${noconfigdirs}" in
yes:*target-libstdc++-v3*)
AC_MSG_ERROR([bootstrapping with --disable-libstdcxx is not supported])
;;
esac
extrasub_build= extrasub_build=
for module in ${build_configdirs} ; do for module in ${build_configdirs} ; do
if test -z "${no_recursion}" \ if test -z "${no_recursion}" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment