MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / compile

Method compile

test/api/APIAOTCoreTest.cpp:73–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers 1

TEST_PFunction · 0.45

Calls 4

WasmEdge_ResultOKFunction · 0.85
UnexpectFunction · 0.85
convResultFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected