]> Cypherpunks repositories - gostls13.git/commit
cmd/go: stamp tags and flags in build info
authorJay Conrod <jayconrod@google.com>
Tue, 12 Oct 2021 22:08:54 +0000 (15:08 -0700)
committerJay Conrod <jayconrod@google.com>
Thu, 14 Oct 2021 18:44:48 +0000 (18:44 +0000)
commit0fd0639e4c429e147d33bfc42654fcd651f4449f
treed4e41aed93823db98564552ac264ba293dc53b67
parenta37bebc042672d20837ea348d45e39740568cb77
cmd/go: stamp tags and flags in build info

Toolchain flags (like -gcflags), build tags (including race and msan),
and cgo variables (including CGO_ENABLED, CGO_CPPFLAGS and others) are
now stamped into binaries.

For #37475

Change-Id: I9023e682c0618f91805434946c6bc937536b69bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/355493
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/alldocs.go
src/cmd/go/go_test.go
src/cmd/go/internal/cfg/cfg.go
src/cmd/go/internal/load/flag.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/work/build.go
src/cmd/go/testdata/script/version_build_settings.txt [new file with mode: 0644]