aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authorZauberNerd <[email protected]>2022-03-18 10:42:32 +0000
committerAyke <[email protected]>2022-03-19 15:36:44 +0100
commit0b5d300d9480cfdd6828e054bda50596a39782de (patch)
tree77a15b2ff9bf48555a2d9911db630edc197d3427 /targets
parent2fdcabdcceabe25a43073079db7785acf66538d7 (diff)
downloadtinygo-0b5d300d9480cfdd6828e054bda50596a39782de.tar.gz
tinygo-0b5d300d9480cfdd6828e054bda50596a39782de.zip
targets/wasi: remove --export-dynamic linker flag
Exporting symbols seems to embed them in the WASM exports section which causes wasmtime to fail: https://github.com/bytecodealliance/wasmtime/issues/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`: https://github.com/rust-lang/rust/pull/81255 Which is waht this commit does for Tinygo too.
Diffstat (limited to 'targets')
-rw-r--r--targets/wasi.json1
1 files changed, 0 insertions, 1 deletions
diff --git a/targets/wasi.json b/targets/wasi.json
index 9caec7a57..9ae96a338 100644
--- a/targets/wasi.json
+++ b/targets/wasi.json
@@ -11,7 +11,6 @@
"ldflags": [
"--allow-undefined",
"--stack-first",
- "--export-dynamic",
"--no-demangle"
],
"emulator": ["wasmtime"],