Skip to content

Commit

Permalink
dev-lang/go: ppc64le updates for #581278
Browse files Browse the repository at this point in the history
Add proper support for ppc64 to go_arch and display GOROOT_BOOTSTRAP
to allow debugging this for new architectures in the future.

Package-Manager: portage-2.2.26
  • Loading branch information
williamh committed Apr 28, 2016
1 parent 5f5f50e commit 45fde8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-lang/go/go-1.6.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ go_arch()
case "${portage_arch}" in
x86) echo 386;;
x64-*) echo amd64;;
ppc64)
[[ "$(tc-endian)" = big ]] && echo ppc64 || echo ppc64le ;;
*) echo "${portage_arch}";;
esac
}
Expand Down Expand Up @@ -175,6 +177,7 @@ src_compile()
if [[ ${ARCH} == arm ]]; then
export GOARM=$(go_arm)
fi
elog "GOROOT_BOOTSTRAP is ${GOROOT_BOOTSTRAP}"

cd src
./make.bash || die "build failed"
Expand Down

0 comments on commit 45fde8d

Please sign in to comment.