build-style/go: restrict archs for gccgo env too

this is because some archs lack support in gccgo, and some are
not integrated yet in our toolchains
This commit is contained in:
q66 2020-12-17 00:12:37 +01:00
parent 950477aec6
commit 69b49cfba6
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,11 @@ if [ -z "$hostmakedepends" -o "${hostmakedepends##*gcc-go-tools*}" ]; then
nopie=yes
else
# gccgo compiler
if [ -z "$archs" ]; then
# we have support for these in our gcc
# ppcle is missing, and mips doesn't have go in cross yet
archs="aarch64* armv[567]* i686* x86_64* ppc64* ppc ppc-musl"
fi
if [ "$CROSS_BUILD" ]; then
# target compiler to use; otherwise it'll just call gccgo
export GCCGO="${XBPS_CROSS_TRIPLET}-gccgo"