aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2023-01-13 20:02:54 +0100
committerRon Evans <[email protected]>2023-01-17 08:38:54 +0100
commit19db0144aeacf12fabce9f02bd44dd60f0bfb694 (patch)
tree2de208b5b4cf9bdc36e35358a6a21e081dd4e1bc
parentd639e016504e16438a6de2e1b6bb06a16632ffa9 (diff)
downloadtinygo-19db0144aeacf12fabce9f02bd44dd60f0bfb694.tar.gz
tinygo-19db0144aeacf12fabce9f02bd44dd60f0bfb694.zip
runtime: implement internal/godebug.setUpdate as a stub
This function provides a mechanism to watch for changes to the GODEBUG environment variable. For now, we'll not implement it. It might be useful in the future, when it can always be added.
-rw-r--r--src/runtime/runtime.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go
index eecedee22..1a2a0495e 100644
--- a/src/runtime/runtime.go
+++ b/src/runtime/runtime.go
@@ -95,3 +95,9 @@ func KeepAlive(x interface{}) {
func SetFinalizer(obj interface{}, finalizer interface{}) {
// Unimplemented.
}
+
+//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).
+}