Skip to content

Commit

Permalink
Merge pull request #779 from flouthoc/wasm-version-stat
Browse files Browse the repository at this point in the history
crun: show if version is packaged and supports `wasm` with configured runtime.
  • Loading branch information
giuseppe authored Nov 12, 2021
2 parents e58ec44 + 3c6d57d commit 0f36c6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/crun.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ print_version (FILE *stream, struct argp_state *state arg_unused)
#ifdef HAVE_CRIU
fprintf (stream, "+CRIU ");
#endif
#ifdef HAVE_WASMER
fprintf (stream, "+WASM:wasmer ");
#elif defined HAVE_WASMEDGE
fprintf (stream, "+WASM:wasmedge ");
#endif
#ifdef HAVE_LIBKRUN
fprintf (stream, "+LIBKRUN ");
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/libcrun/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ wasmedge_do_exec (void *container, void *handle, const char *pathname, char *con
{
WasmEdge_VMDelete (vm);
WasmEdge_ConfigureDelete (configure);
error (EXIT_FAILURE, 0, "could not set krun executable");
error (EXIT_FAILURE, 0, "could not get wasmedge result from VM");
}

WasmEdge_VMDelete (vm);
Expand Down

0 comments on commit 0f36c6e

Please sign in to comment.