| 71 | WasmEdge_CompilerDelete(CompilerCxt); |
| 72 | } |
| 73 | Expect<std::string> compile(const std::string &FileName) { |
| 74 | auto Path = std::filesystem::u8path(FileName); |
| 75 | Path.replace_extension(std::filesystem::u8path(WASMEDGE_LIB_EXTENSION)); |
| 76 | const auto SOPath = Path.u8string(); |
| 77 | WasmEdge_Result Res = WasmEdge_CompilerCompile( |
| 78 | CompilerCxt, FileName.c_str(), SOPath.c_str()); |
| 79 | if (!WasmEdge_ResultOK(Res)) { |
| 80 | return Unexpect(convResult(Res)); |
| 81 | } |
| 82 | return SOPath; |
| 83 | } |
| 84 | }; |
| 85 | |
| 86 | T.onInit = [&ConfRef](SpecTest::ContextHandle Parent, |
no test coverage detected