wasm: add Boehm GC support

This adds support for `-gc=boehm` on `-target=wasip1` and `-target=wasm`
(in a browser or NodeJS). Notably it does *not* add Boehm GC support for
`-target=wasip2`, since that target doesn't have a real libc.
This commit is contained in:
Ayke van Laethem
2025-03-17 13:37:44 +01:00
committed by Ron Evans
parent 9c3b706533
commit c08b2dfe06
21 changed files with 121 additions and 60 deletions
+2 -1
View File
@@ -23,7 +23,8 @@
"--no-demangle"
],
"extra-files": [
"src/runtime/asm_tinygowasm.S"
"src/runtime/asm_tinygowasm.S",
"src/runtime/gc_boehm.c"
],
"emulator": "wasmtime run --dir={tmpDir}::/tmp {}"
}
+2 -1
View File
@@ -24,7 +24,8 @@
"--no-demangle"
],
"extra-files": [
"src/runtime/asm_tinygowasm.S"
"src/runtime/asm_tinygowasm.S",
"src/runtime/gc_boehm.c"
],
"emulator": "node {root}/targets/wasm_exec.js {}"
}