James Le Cuirot <[email protected]> writes:

> This also makes the code simpler.
>
> Signed-off-by: James Le Cuirot <[email protected]>
> ---
>  eclass/go-env.eclass | 23 +++++++++--------------
>  1 file changed, 9 insertions(+), 14 deletions(-)
>
> diff --git a/eclass/go-env.eclass b/eclass/go-env.eclass
> index 5d6a032f5411..7b7a496b10fb 100644
> --- a/eclass/go-env.eclass
> +++ b/eclass/go-env.eclass
> @@ -44,13 +44,18 @@ go-env_set_compile_environment() {
>               mips*) export GOMIPS=$(go-env_gomips) ;;
>       esac
>  
> -     # XXX: Hack for checking ICE (bug #912152, gcc PR113204)
> +     # Don't modify the non-Go variables outside this function.
> +     local -I $(all-flag-vars)
> +
>       if tc-is-gcc ; then
> +             # XXX: Hack for checking ICE (bug #912152, gcc PR113204)
>               # For either USE=debug or an unreleased compiler, non-default
>               # checking will trigger.
> -             if $(tc-getCC) -v 2>&1 | grep -Eqe 
> "--enable-checking=\S*\byes\b" ; then
> -                     filter-lto
> -             fi
> +             $(tc-getCC) -v 2>&1 | grep -Eqe "--enable-checking=\S*\byes\b" 
> && filter-lto
> +
> +             # bug #929219
> +             replace-flags -g3 -g
> +             replace-flags -ggdb3 -ggdb

BTW, this workaround looks like it shouldn't be needed with Go 1.27 (?):
https://github.com/golang/go/commit/5f51b092846ae43d03092d866449d9933a8bf42b

Noticed when adding it into dev-lang/go.

> [...]

sam

Attachment: signature.asc
Description: PGP signature

Reply via email to