]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: stop using internal/godebug
authorRuss Cox <rsc@golang.org>
Wed, 24 Apr 2024 16:56:44 +0000 (12:56 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 9 May 2024 13:50:03 +0000 (13:50 +0000)
commitacda0107ba065f1e049ab3b6a6fdde72762a6e43
treefae44bdceeca838455959fbc8cd4a76d5463898b
parent524a7746349a6ce6d4af76a1840366daac46aa12
cmd/compile: stop using internal/godebug

The main reason not to use internal/godebug is that
people often set GODEBUGs to change the behavior
of the programs they are running with 'go run' or 'go test'.
We don't want the compiler to behave differently as well
in that case: that's too many changes.

Using internal/godebug also breaks bootstrapping
with toolchains that don't have it, or future toolchains
that have a different API in that package.

Change-Id: Ib5a8a74e2451649d8838b71f274b4e3a78939dfa
Reviewed-on: https://go-review.googlesource.com/c/go/+/581495
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/importer/ureader.go
src/cmd/compile/internal/types2/check.go