summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <william.hubbs@sony.com>2018-12-19 18:17:35 -0600
committerWilliam Hubbs <williamh@gentoo.org>2018-12-19 18:21:15 -0600
commit781c114dea8c9dbcc86a2d5208dfc4b805f3ed76 (patch)
treecd44945074498d3428e33b41ef280234fe6be020 /eclass/golang-build.eclass
parentgolang-base.eclass: Revert "turn off the go build cache for Go 1.11" (diff)
downloadgentoo-781c114dea8c9dbcc86a2d5208dfc4b805f3ed76.tar.gz
gentoo-781c114dea8c9dbcc86a2d5208dfc4b805f3ed76.tar.bz2
gentoo-781c114dea8c9dbcc86a2d5208dfc4b805f3ed76.zip
golang-build.eclass: add GOCACHE setting in src_compile for Go 1.11
Copyright: Sony Interactive Entertainment inc. Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'eclass/golang-build.eclass')
-rw-r--r--eclass/golang-build.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/golang-build.eclass b/eclass/golang-build.eclass
index 4d5bcdf7318..bb662ad45ba 100644
--- a/eclass/golang-build.eclass
+++ b/eclass/golang-build.eclass
@@ -55,6 +55,7 @@ golang-build_src_compile() {
ego_pn_check
set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+ GOCACHE="${T}/go-cache" \
go build -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}"
echo "$@"
"$@" || die