From 987c1b6aba48cd3a48945188e2dafc04eff57a7f Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 26 Apr 2025 18:47:17 +0100 Subject: [PATCH] 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 --- eclass/toolchain.eclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 8254b60873f1b..01106d8923f4a 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