go/build: use GCCGOTOOLDIR to find gccgo tools
commit1e4cc5c6c11612e169452822de2088872d45570b
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Jun 2017 13:50:53 +0000 (14 13:50 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Jun 2017 13:50:53 +0000 (14 13:50 +0000)
tree8c270b890417dda1279a930faebc79f52f967dca
parent4edd06160a02982d6726773828286969cb81fb3a
go/build: use GCCGOTOOLDIR to find gccgo tools

    Add the environment variable GCCGOTOOLDIR to permit overriding the default
    directory where tools like cgo are found when building with gccgo.

    This will be used by the cmd/go tests in a future CL.

    Reviewed-on: https://go-review.googlesource.com/45694

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249196 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/go/cmd/go/alldocs.go
libgo/go/cmd/go/help.go
libgo/go/go/build/build.go