-6d1d558109b5f5e53b31cc3325485dbb9f06d430
+a790c5fec06ced726c7f0f597186883ce61d0a45
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
// Defined by Git. A colon-separated list of schemes that are allowed to be used
// with git fetch/clone. If set, any scheme not explicitly mentioned will be
// considered insecure by 'go get'.
+// GCCGOTOOLDIR
+// If set, where to find gccgo tools, such as cgo.
+// The default is based on how gccgo was configured.
//
//
// Import path syntax
Defined by Git. A colon-separated list of schemes that are allowed to be used
with git fetch/clone. If set, any scheme not explicitly mentioned will be
considered insecure by 'go get'.
+ GCCGOTOOLDIR
+ If set, where to find gccgo tools, such as cgo.
+ The default is based on how gccgo was configured.
`,
}
func getToolDir() string {
if runtime.Compiler == "gccgo" {
- return runtime.GCCGOTOOLDIR
+ return envOr("GCCGOTOOLDIR", runtime.GCCGOTOOLDIR)
} else {
return filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)
}