Signed-off-by: James Le Cuirot <[email protected]>
---
eclass/go-env.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/go-env.eclass b/eclass/go-env.eclass
index 42c5476e0204..5d6a032f5411 100644
--- a/eclass/go-env.eclass
+++ b/eclass/go-env.eclass
@@ -48,7 +48,7 @@ go-env_set_compile_environment() {
if tc-is-gcc ; then
# For either USE=debug or an unreleased compiler, non-default
# checking will trigger.
- if has_version -b "sys-devel/gcc[debug]" || [[
$(gcc-minor-version) -eq 0 ]] ; then
+ if $(tc-getCC) -v 2>&1 | grep -Eqe
"--enable-checking=\S*\byes\b" ; then
filter-lto
fi
fi
--
2.53.0