Wasi_snapshot_preview1 equivalent?

@michael-weigelt

I’ve created an ICP handler.

https://github.com/graial/ruby.wasm/blob/80153aa2f6df7b73d81e3e28387db5d251d91025/lib/ruby_wasm/build/toolchain.rb#L291

Is emcc a viable toolchain for compiling to ICP?

It compiles successfully if I:

  • pass --host wasm32
  • remove this from LDFLAGS -Xlinker\ stack-size=16777216

Alternatively, I could try to adapt the wasi handler (starting at line 62). But I rememer you said wasi isn’t supported, so I suspect i gain nothing from the extra complexity that one contains

Cheers