A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Put Linker::define_wasi under WASMTIME_FEATURE_WASI (#11928)
Vladimir Cherkasov0ffe18b7f539
diff --git a/crates/c-api/include/wasmtime/linker.hh b/crates/c-api/include/wasmtime/linker.hhindex afd44feebb..be11c3e337 100644--- a/crates/c-api/include/wasmtime/linker.hh+++ b/crates/c-api/include/wasmtime/linker.hh@@ -55,6 +55,7 @@ public:return std::monostate();}+#ifdef WASMTIME_FEATURE_WASI/// Defines WASI functions within this linker.////// Note that `Store::Context::set_wasi` must also be used for instantiated@@ -66,6 +67,7 @@ public:}return std::monostate();}+#endif // WASMTIME_FEATURE_WASI/// Defines all exports of the `instance` provided in this linker with the/// given module name of `name`.