summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-05-11 01:54:29 +0100
committerSam James <sam@gentoo.org>2024-05-11 01:54:29 +0100
commit4d6705884ff5a06e8dbbbd86d0b4f8decf300275 (patch)
treee77948880afa1c9a914653c954f4716a0b42957a /eclass/go-env.eclass
parentsys-libs/binutils-libs: Stabilize 2.42-r1 x86, #931298 (diff)
downloadgentoo-4d6705884ff5a06e8dbbbd86d0b4f8decf300275.tar.gz
gentoo-4d6705884ff5a06e8dbbbd86d0b4f8decf300275.tar.bz2
gentoo-4d6705884ff5a06e8dbbbd86d0b4f8decf300275.zip
go-env.eclass: update GCC workaround for LTO
Not fixed upstream yet so change workaround to look for sys-devel/gcc[debug] instead as 14 is released now. Bug: https://bugs.gentoo.org/912152 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/go-env.eclass')
-rw-r--r--eclass/go-env.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/go-env.eclass b/eclass/go-env.eclass
index baba0d3ee8b3..e0987ec7dee7 100644
--- a/eclass/go-env.eclass
+++ b/eclass/go-env.eclass
@@ -34,7 +34,7 @@ go-env_set_compile_environment() {
use x86 && export GO386=$(go-env_go386)
# XXX: Hack for checking ICE (bug #912152, gcc PR113204)
- [[ $(gcc-fullversion) == 14.0.1 ]] && filter-lto
+ has_version -b "sys-devel/gcc[debug]" && filter-lto
export CGO_CFLAGS="${CGO_CFLAGS:-$CFLAGS}"
export CGO_CPPFLAGS="${CGO_CPPFLAGS:-$CPPFLAGS}"