cmd/go: ignore errors from go/build for standard packages
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 15 Aug 2016 18:05:24 +0000 (18:05 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 15 Aug 2016 18:05:24 +0000 (18:05 +0000)
commit87155d4f6c847cd072321424831fd0ffb405265d
tree8af89ab078186cd821f1f9f1f9f076eb166050db
parent2008be405c16e8b7ca5399fb9e6fb25aa92f03a3
cmd/go: ignore errors from go/build for standard packages

    The go/build package does not know that gccgo's standard packages don't
    have source, and will report an error saying that it can not find them.
    Work around that in the cmd/go sources, since the go/build sources don't
    currently have a list of standard packages.

    This should get a real fix in the master sources, somehow.

    Fixes golang/go#16701.

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

From-SVN: r239486
gcc/go/gofrontend/MERGE
libgo/go/cmd/go/pkg.go