go/build: use GCCGOTOOLDIR to find gccgo tools
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 14 Jun 2017 13:50:53 +0000 (13:50 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 14 Jun 2017 13:50:53 +0000 (13:50 +0000)
commitb205ec303fc93ba64c0991f64a44e7773f68c38a
tree8c270b890417dda1279a930faebc79f52f967dca
parent0818233f800920bf4d5c384718b6fb328bba81fe
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

From-SVN: r249196
gcc/go/gofrontend/MERGE
libgo/go/cmd/go/alldocs.go
libgo/go/cmd/go/help.go
libgo/go/go/build/build.go