mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 22:43:40 +00:00
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:
committed by
Ron Evans
parent
9c3b706533
commit
c08b2dfe06
+2
-1
@@ -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
@@ -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 {}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user