mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 15:41:04 +02:00
eclass/go-env: Sync with Gentoo
It's from Gentoo commit 90cadf879253a7ef6b439f7a51809f0b0b835693.
This commit is contained in:
parent
7924d20062
commit
86391f9d78
@ -1,4 +1,4 @@
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Copyright 2023-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: go-env.eclass
|
||||
@ -40,7 +40,13 @@ go-env_set_compile_environment() {
|
||||
use x86 && export GO386=$(go-env_go386)
|
||||
|
||||
# XXX: Hack for checking ICE (bug #912152, gcc PR113204)
|
||||
has_version -b "sys-devel/gcc[debug]" && filter-lto
|
||||
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
|
||||
filter-lto
|
||||
fi
|
||||
fi
|
||||
|
||||
export CGO_CFLAGS="${CGO_CFLAGS:-$CFLAGS}"
|
||||
export CGO_CPPFLAGS="${CGO_CPPFLAGS:-$CPPFLAGS}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user