commit:     abeaffc3e3c4916c60a197cce00ded2764007ca5
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 28 08:02:36 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Dec 28 08:02:36 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=abeaffc3

scripts/bootstrap-prefix: use <gcc-11 in stage1 on Darwin

GCC 11 needs a compiler with C++11 support, which is experimental in
4.8, e.g. not available in 4.2.1.  So bootstrap with 10.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 15ae679b95..2ac347383a 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -214,7 +214,9 @@ configure_toolchain() {
                                        return 1
                                        ;;
                        esac
-                       compiler_stage1+=" sys-devel/gcc"
+                       # current compiler (gcc-11 requires C++11, which is
+                       # available since 4.8, so need to bootstrap with <11)
+                       compiler_stage1+=" <sys-devel/gcc-11"
                        ;;
                *-darwin*)
                        einfo "Triggering Darwin with LLVM/Clang toolchain"

Reply via email to