Open pavelsavara opened 4 days ago
I use wasm-component-ld 0.5.6
as part of wasi-sdk v24
Thanks! I believe the underlying issue here is https://github.com/bytecodealliance/wasm-tools/issues/1897 which I hope to get to at some point in the future. For now though the only workaround is to permute the order of things and hope it gets fixed, but that's not great naturally :(
I'm trying to export
wasi:http
incoming-handler
and importwasi:http
outgoing-handler
in the same component. But the export and the import are each in different C object files and I'm passing two.wit
files via-Wl,--component-type
.I separately use
And
For each of them I use
wit-bindgen c-sharp -w wasi-http -r native-aot --internal wasi-http-0.2.0/wit
And get 2 different .wit files, both namedWasiHttpWorld_component_type.wit
but in different folders.Difference between them is
vs
The rest of the file is identical (each containing the same used types).
Simplified link command is like
The interesting part of verbose log is