Created attachment 246171 [details] add wasmtime CLI support
Add a slave port to build wasmtime CLI.
Created attachment 246209 [details] move wasmtime cli into emulators move wasmtime cli into emulators and add an rc file to register wasmtime as interpreter by binmiscctl.
Tested on my local FreeBSD: > cat << _EOF_ > hello-wasm.c #include <stdio.h> int main(int argc, char *argv[]) { printf("Hello WebASM\n"); return 0; } _EOF_ > clang17 --target=wasm32-wasi --sysroot=/usr/local/share/wasi-sysroot -o hello-wasm hello-wasm.c > ./hello-wasm exec: Failed to execute process: 'hello-wasm' the file could not be run by the operating system. > sudo pkg install -y emulators/wasmtime > sudo service wasmtime onestart > ./hello-wasm Hello WebASM > sudo service wasmtime onestop > ./hello-wasm exec: Failed to execute process: 'hello-wasm' the file could not be run by the operating system.
Hi Eric, thanks for the report. I'd prefer to see lang/wasmtime as a separate port, independent on devel/libwasmtime.