kawamuray / wasmtime-java

Java or JVM-language binding for Wasmtime
Apache License 2.0
127 stars 29 forks source link

Support for Windows 32 bit #47

Open schumjo opened 1 year ago

schumjo commented 1 year ago

Hi,

is Windows 32bit supported in future?

Best regards!

kawamuray commented 1 year ago

Not planned, but contributions welcome and it might be easy to support if cargo build with --target stable-i686-pc-windows-msvc works in windows-latest os in github actions.

schumjo commented 1 year ago

Thanks for your quick response!

Building for target stable-i686-pc-windows-msvc causes following Error:

error: unsupported architecture
  --> ...\.cargo\registry\src\deagxartifactory.sickcn.net-f27b0f4b4f96cba8\wasmtime-runtime-5.0.1\src\trampolines.rs:58:9
   |
58 |         compile_error!("unsupported architecture");
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unsupported architecture
  --> ...\.cargo\registry\src\deagxartifactory.sickcn.net-f27b0f4b4f96cba8\wasmtime-runtime-5.0.1\src\traphandlers\backtrace.rs:49:9
   |
49 |         compile_error!("unsupported architecture");
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Do you know any workaround?

kawamuray commented 1 year ago

Ah, looks like wasmtime isn't supporting 32bit architecture at all: https://github.com/bytecodealliance/wasmtime/blob/main/crates/runtime/src/traphandlers/backtrace.rs#L49 . So inherently wasmtime-java can't support 32bit arch either.