]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: add GOFIPS140 setting
authorRuss Cox <rsc@golang.org>
Thu, 14 Nov 2024 07:31:46 +0000 (02:31 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 19 Nov 2024 18:48:15 +0000 (18:48 +0000)
commit4d6170427f4d02e79454b25391b56e7d1c5ceb39
tree95d30395df1f28270fe6ec4e859fb586cb6130aa
parent3a28cee8fb901a9ebd55ccf70f16b56cc14ebf5b
cmd/dist: add GOFIPS140 setting

GOFIPS140 will be used to control whether to build binaries that
run in FIPS-140 mode by default, as well as which version of
crypto/internal/fips is used during a given build.
It is a target configuration variable analogous to
GOOS, GOARCH, CGO_ENABLED, and the like, so the
default value is recorded in the toolchain during make.bash.

This CL adds the GOFIPS140 setting to the build process
and records the default for use by cmd/go.

For #70200.

Change-Id: Iafcb5a4207f00fae8bcd93e0184a63c72526abea
Reviewed-on: https://go-review.googlesource.com/c/go/+/629196
Reviewed-by: Michael Matloob <matloob@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/dist/build.go
src/cmd/dist/buildruntime.go
src/internal/buildcfg/cfg.go
src/internal/buildcfg/cfg_test.go
src/internal/cfg/cfg.go