aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/wasip2.json
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-10-22 15:53:57 +0200
committerRon Evans <[email protected]>2024-10-23 09:13:30 +0100
commit0f95b4102d83b6977277ea7d5e87ad538eddc5ef (patch)
tree8a63d2ea5f7028a9edeaa663f7782b9d4b9a101e /targets/wasip2.json
parent24c11d4ba5f722ef646ae0e1ee06b90b2411590c (diff)
downloadtinygo-0f95b4102d83b6977277ea7d5e87ad538eddc5ef.tar.gz
tinygo-0f95b4102d83b6977277ea7d5e87ad538eddc5ef.zip
wasm: use precise GC for WebAssembly (including WASI)
With a few small modifications, all the problems with `-gc=precise` in WebAssembly seem to have been fixed. I didn't do any performance measurements, but this is supposed to improve GC performance.
Diffstat (limited to 'targets/wasip2.json')
-rw-r--r--targets/wasip2.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/targets/wasip2.json b/targets/wasip2.json
index 4b0e67591..7c8394c8e 100644
--- a/targets/wasip2.json
+++ b/targets/wasip2.json
@@ -9,6 +9,7 @@
"linker": "wasm-ld",
"libc": "wasmbuiltins",
"rtlib": "compiler-rt",
+ "gc": "precise",
"scheduler": "asyncify",
"default-stack-size": 65536,
"cflags": [