commit:     987c1b6aba48cd3a48945188e2dafc04eff57a7f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 26 17:47:17 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 26 17:51:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=987c1b6a

toolchain.eclass: reset STAGE1_GDCFLAGS too

... just in case it leaks into other parts of the build. Noticed when
looking at Jannik's reported comparison failure.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 8254b60873f1..01106d8923f4 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2316,6 +2316,7 @@ gcc_do_make() {
                if ! tc-is-gcc || ver_test $(gcc-fullversion) -lt 10 ; then
                        STAGE1_CFLAGS="-O0"
                        STAGE1_CXXFLAGS="-O0"
+                       STAGE1_GDCFLAGS="-O0"
                # We have a very good host compiler but it may be a bit too 
good, and
                # know about flags that the version we are compiling does not 
know
                # about. In principle we could check e.g. which gnat1 we are 
using as
@@ -2323,6 +2324,7 @@ gcc_do_make() {
                elif _tc_use_if_iuse ada || _tc_use_if_iuse d; then
                        STAGE1_CFLAGS="-O2"
                        STAGE1_CXXFLAGS="-O2"
+                       STAGE1_GDCFLAGS="-O2"
                fi
 
                # We only want to use the system's CFLAGS if not building a

Reply via email to