2020-05-23 09:32:27 -04:00
|
|
|
// Copyright 2019 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Package cfg holds configuration shared by the Go command and internal/testenv.
|
|
|
|
// Definitions that don't need to be exposed outside of cmd/go should be in
|
|
|
|
// cmd/go/internal/cfg instead of this package.
|
|
|
|
package cfg
|
|
|
|
|
|
|
|
// KnownEnv is a list of environment variables that affect the operation
|
|
|
|
// of the Go command.
|
|
|
|
const KnownEnv = `
|
|
|
|
AR
|
|
|
|
CC
|
|
|
|
CGO_CFLAGS
|
|
|
|
CGO_CFLAGS_ALLOW
|
|
|
|
CGO_CFLAGS_DISALLOW
|
|
|
|
CGO_CPPFLAGS
|
|
|
|
CGO_CPPFLAGS_ALLOW
|
|
|
|
CGO_CPPFLAGS_DISALLOW
|
|
|
|
CGO_CXXFLAGS
|
|
|
|
CGO_CXXFLAGS_ALLOW
|
|
|
|
CGO_CXXFLAGS_DISALLOW
|
|
|
|
CGO_ENABLED
|
|
|
|
CGO_FFLAGS
|
|
|
|
CGO_FFLAGS_ALLOW
|
|
|
|
CGO_FFLAGS_DISALLOW
|
|
|
|
CGO_LDFLAGS
|
|
|
|
CGO_LDFLAGS_ALLOW
|
|
|
|
CGO_LDFLAGS_DISALLOW
|
|
|
|
CXX
|
|
|
|
FC
|
|
|
|
GCCGO
|
|
|
|
GO111MODULE
|
|
|
|
GO386
|
2022-03-16 03:48:16 -04:00
|
|
|
GOAMD64
|
2020-05-23 09:32:27 -04:00
|
|
|
GOARCH
|
|
|
|
GOARM
|
2024-08-14 05:34:21 -04:00
|
|
|
GOARM64
|
2020-05-23 09:32:27 -04:00
|
|
|
GOBIN
|
|
|
|
GOCACHE
|
2023-08-23 12:23:52 -04:00
|
|
|
GOCACHEPROG
|
2020-05-23 09:32:27 -04:00
|
|
|
GOENV
|
|
|
|
GOEXE
|
2022-03-16 03:48:16 -04:00
|
|
|
GOEXPERIMENT
|
2020-05-23 09:32:27 -04:00
|
|
|
GOFLAGS
|
|
|
|
GOGCCFLAGS
|
|
|
|
GOHOSTARCH
|
|
|
|
GOHOSTOS
|
|
|
|
GOINSECURE
|
|
|
|
GOMIPS
|
|
|
|
GOMIPS64
|
|
|
|
GOMODCACHE
|
|
|
|
GONOPROXY
|
|
|
|
GONOSUMDB
|
|
|
|
GOOS
|
|
|
|
GOPATH
|
|
|
|
GOPPC64
|
|
|
|
GOPRIVATE
|
|
|
|
GOPROXY
|
2024-08-14 05:34:21 -04:00
|
|
|
GORISCV64
|
2020-05-23 09:32:27 -04:00
|
|
|
GOROOT
|
|
|
|
GOSUMDB
|
|
|
|
GOTMPDIR
|
2023-08-23 12:23:52 -04:00
|
|
|
GOTOOLCHAIN
|
2020-05-23 09:32:27 -04:00
|
|
|
GOTOOLDIR
|
2020-12-03 07:50:17 -05:00
|
|
|
GOVCS
|
2020-05-23 09:32:27 -04:00
|
|
|
GOWASM
|
2022-03-16 03:48:16 -04:00
|
|
|
GOWORK
|
2020-05-23 09:32:27 -04:00
|
|
|
GO_EXTLINK_ENABLED
|
|
|
|
PKG_CONFIG
|
|
|
|
`
|