runtime: implement internal/godebug.setUpdate

This function was a stub, but it really needs to be implemented for full
Go 1.20 support. Without it, the archive/zip tests will fail.
This commit is contained in:
Ayke van Laethem
2023-02-02 18:47:37 +01:00
committed by Ayke
parent 47ca1c037b
commit 7fe996e7ba
2 changed files with 11 additions and 2 deletions
+5 -2
View File
@@ -96,8 +96,11 @@ func SetFinalizer(obj interface{}, finalizer interface{}) {
// Unimplemented.
}
var godebugUpdate func(string, string)
//go:linkname godebug_setUpdate internal/godebug.setUpdate
func godebug_setUpdate(update func(string, string)) {
// Unimplemented. The 'update' function needs to be called whenever the
// GODEBUG environment variable changes (for example, via os.Setenv).
// The 'update' function needs to be called whenever the GODEBUG environment
// variable changes (for example, via os.Setenv).
godebugUpdate = update
}