aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-08-22 14:34:03 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-10-25 13:09:04 -0700
commit48b22a3f05df203c40a6f953aaa0acf828aad9a9 (patch)
treef99e81627042c39c494bc9b6e11ffcd039e9dd7a /configure.ac
parentc8138acb99003860e1e845499b5b2a4e328a969a (diff)
downloadgcc-48b22a3f05df203c40a6f953aaa0acf828aad9a9.zip
gcc-48b22a3f05df203c40a6f953aaa0acf828aad9a9.tar.gz
gcc-48b22a3f05df203c40a6f953aaa0acf828aad9a9.tar.bz2
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: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2567757..1cab846 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3192,6 +3192,15 @@ case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
;;
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=
for module in ${build_configdirs} ; do
if test -z "${no_recursion}" \