Skip to content

Commit 0c94c9a

Browse files
ZauberNerdardnew
authored andcommitted
targets/wasi: remove --export-dynamic linker flag
Exporting symbols seems to embed them in the WASM exports section which causes wasmtime to fail: bytecodealliance/wasmtime#2587 As a workaround, it is possible to specify the `--allow-unknown-exports` flag on wasmtime. But as discussed in the above linked issue, this seems to only be a workaround. For the Rust compiler the fix was to remove the `--export-dynamic` linker flag when targeting `wasm32-wasi`: rust-lang/rust#81255 Which is waht this commit does for Tinygo too.
1 parent fe9c7a4 commit 0c94c9a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

targets/wasi.json

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"ldflags": [
1212
"--allow-undefined",
1313
"--stack-first",
14-
"--export-dynamic",
1514
"--no-demangle"
1615
],
1716
"emulator": ["wasmtime"],

0 commit comments

Comments
 (0)