github.com/bir3/gocompiler@v0.9.2202/src/go/build/gccgo.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build gccgo 6 7 package build 8 9 import "runtime" 10 11 // getToolDir returns the default value of ToolDir. 12 func getToolDir() string { 13 return envOr("GCCGOTOOLDIR", runtime.GCCGOTOOLDIR) 14 }