build: some minor post-repo-split fixes; add fastbuild

This commit is contained in:
Casey Callendrello
2017-06-01 18:43:58 +02:00
parent 0997c532a1
commit 43a24515ee
4 changed files with 16 additions and 15 deletions

View File

@ -21,6 +21,11 @@ for d in $PLUGINS; do
plugin="$(basename "$d")"
echo " $plugin"
# use go install so we don't duplicate work
go build -o "${PWD}/bin/$plugin" -pkgdir "$GOPATH/pkg" "$@" "$REPO_PATH/$d"
if [ -n "$FASTBUILD" ]
then
GOBIN=${PWD}/bin go install -pkgdir $GOPATH/pkg "$@" $REPO_PATH/$d
else
go build -o "${PWD}/bin/$plugin" -pkgdir "$GOPATH/pkg" "$@" "$REPO_PATH/$d"
fi
fi
done