Stream: wasmtime

Topic: ✔ upgrading from 8 to 22


view this post on Zulip Steve Williams (Jul 13 2024 at 11:09):

guys, upgrading our wasmtime (using c-api), first time in ages. windows only build for now.

wasmtime_config_debug_info_set seems to have vanished. what's that called now, plz.

view this post on Zulip Steve Williams (Jul 13 2024 at 11:14):

working around what seems to be an error :

Z:\dev\wasm\wasmtime\crates\c-api\include\wasmtime\config.h(11,10): error C1083: Cannot open include file: 'wasmtime/conf.h': No such file or directory

I've got no conf.h built in my tree.

view this post on Zulip Steve Williams (Jul 13 2024 at 11:16):

k, debug_info resolves via a macro. commenting out
//#include <wasmtime/conf.h>
in config.h enables successful build.

view this post on Zulip Steve Williams (Jul 13 2024 at 11:19):

got a conf.h.in that doesn't seem to have processed.

view this post on Zulip Steve Williams (Jul 13 2024 at 11:22):

didn't run cmake. perhaps that's it.
just did what worked previously which was :

cargo build --release
cargo build --release --manifest-path crates/c-api/Cargo.toml

view this post on Zulip Steve Williams (Jul 13 2024 at 11:36):

no mention of a cmake dependency here : https://docs.wasmtime.dev/contributing-building.html

view this post on Zulip Steve Williams (Jul 13 2024 at 11:53):

went with pre-compiled 22 c-api & our stuff seems to be working as expected. so step back & figure out how to compile that myself.

view this post on Zulip Steve Williams (Jul 13 2024 at 12:17):

resolved. kinda. built 22 using : cargo build --release -p wasmtime-c-api
as per docs. doesn't build conf.h as that needs cmake to do something or other, which isn't documented.
just copied in a conf.h from pre-compiled c-api for now.

view this post on Zulip Notification Bot (Jul 13 2024 at 12:17):

Steve Williams has marked this topic as resolved.

view this post on Zulip Notification Bot (Jul 13 2024 at 12:19):

9 messages were moved here from #wasmtime > ✔ _ by Steve Williams.


Last updated: Nov 22 2024 at 16:03 UTC