diff options
Diffstat (limited to 'src/runtime/runtime1.go')
| -rw-r--r-- | src/runtime/runtime1.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go index f5d74b7aed..991b92a0af 100644 --- a/src/runtime/runtime1.go +++ b/src/runtime/runtime1.go @@ -489,6 +489,10 @@ func parsegodebug(godebug string, seen map[string]bool) { } } } + + if debug.cgocheck > 1 { + throw("cgocheck > 1 mode is no longer supported at runtime. Use GOEXPERIMENT=cgocheck2 at build time instead.") + } } //go:linkname setTraceback runtime/debug.SetTraceback |
