1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:50:06 -07:00
go/misc/cgo
Russ Cox 14ab998f95 cmd/go: add check for unknown godebug setting
A //go:debug line mentioning an unknown or retired setting
should be diagnosed as making the program invalid. Do that.
We agreed on this in the proposal but I forgot to implement it.

Change-Id: Ie69072a1682d4eeb6866c02adbbb426f608567c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/476280
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-04-18 13:19:19 +00:00
..
errors runtime: reimplement GODEBUG=cgocheck=2 as a GOEXPERIMENT 2023-02-16 00:16:24 +00:00
fortran misc/cgo/fortran: convert to Go test 2022-10-17 15:15:37 +00:00
gmp misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
life misc/cgo: gofmt 2023-04-10 22:32:33 +00:00
nocgo
stdio misc/cgo/{life,stdio}: remove reliance on test/run.go 2023-02-28 01:11:11 +00:00
test Revert "runtime/cgo: store M for C-created thread in pthread key" 2023-04-17 18:47:08 +00:00
testcarchive Revert "runtime/cgo: store M for C-created thread in pthread key" 2023-04-17 18:47:08 +00:00
testcshared cmd/internal/sys, cmd/dist, misc/cgo/testcshared: enable c-shared feature and test on loong64 2023-04-12 20:06:37 +00:00
testgodefs misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
testplugin misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
testsanitizers misc/cgo: gofmt 2023-04-10 22:32:33 +00:00
testshared cmd/go: add check for unknown godebug setting 2023-04-18 13:19:19 +00:00
testso misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
testsovar misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00
testtls misc/cgo: remove +build lines, add go:build where needed 2023-04-10 22:32:35 +00:00