commit | 2475cf16d30626b42cfadd38c9be514959b36f37 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Mon Jun 11 11:53:59 2018 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Jun 11 19:19:27 2018 +0000 |
tree | 09049b8a185a7f17caaca1b0a91bb2db26f8afee | |
parent | f96157268cd4b34e3c6b84cda1b905a7c80796a7 [diff] |
cmd/guru: if built with gccgo, switch to gc mode if GOROOT is valid The gccgo compiler does not provide a gc-style GOROOT with standard library sources. The effect is that guru may not fully work when using gccgo. However, it can fully work if the GOROOT environment variable points to valid gc-style GOROOT. In that case, make it work by telling the go/build package to use gc mode. Change-Id: Iadff8be61be8cc9a7ff2ca0a067b116b62895451 Reviewed-on: https://go-review.googlesource.com/117997 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.