| 1 |
// Copyright 2019 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 |
// Package cfg holds configuration shared by the Go command and internal/testenv. |
| 6 |
// Definitions that don't need to be exposed outside of cmd/go should be in |
| 7 |
// cmd/go/internal/cfg instead of this package. |
| 8 |
package cfg |
| 9 |
|
| 10 |
// KnownEnv is a list of environment variables that affect the operation |
| 11 |
// of the Go command. |
| 12 |
const KnownEnv = ` |
| 13 |
AR |
| 14 |
CC |
| 15 |
CGO_CFLAGS |
| 16 |
CGO_CFLAGS_ALLOW |
| 17 |
CGO_CFLAGS_DISALLOW |
| 18 |
CGO_CPPFLAGS |
| 19 |
CGO_CPPFLAGS_ALLOW |
| 20 |
CGO_CPPFLAGS_DISALLOW |
| 21 |
CGO_CXXFLAGS |
| 22 |
CGO_CXXFLAGS_ALLOW |
| 23 |
CGO_CXXFLAGS_DISALLOW |
| 24 |
CGO_ENABLED |
| 25 |
CGO_FFLAGS |
| 26 |
CGO_FFLAGS_ALLOW |
| 27 |
CGO_FFLAGS_DISALLOW |
| 28 |
CGO_LDFLAGS |
| 29 |
CGO_LDFLAGS_ALLOW |
| 30 |
CGO_LDFLAGS_DISALLOW |
| 31 |
CXX |
| 32 |
FC |
| 33 |
GCCGO |
| 34 |
GO111MODULE |
| 35 |
GO386 |
| 36 |
GOAMD64 |
| 37 |
GOARCH |
| 38 |
GOARM |
| 39 |
GOBIN |
| 40 |
GOCACHE |
| 41 |
GOENV |
| 42 |
GOEXE |
| 43 |
GOEXPERIMENT |
| 44 |
GOFLAGS |
| 45 |
GOGCCFLAGS |
| 46 |
GOHOSTARCH |
| 47 |
GOHOSTOS |
| 48 |
GOINSECURE |
| 49 |
GOMIPS |
| 50 |
GOMIPS64 |
| 51 |
GOMODCACHE |
| 52 |
GONOPROXY |
| 53 |
GONOSUMDB |
| 54 |
GOOS |
| 55 |
GOPATH |
| 56 |
GOPPC64 |
| 57 |
GOPRIVATE |
| 58 |
GOPROXY |
| 59 |
GOROOT |
| 60 |
GOSUMDB |
| 61 |
GOTMPDIR |
| 62 |
GOTOOLDIR |
| 63 |
GOVCS |
| 64 |
GOWASM |
| 65 |
GOWORK |
| 66 |
GO_EXTLINK_ENABLED |
| 67 |
PKG_CONFIG |
| 68 |
` |