mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
fix(compiler): fix code generated for library header.
This commit is contained in:
@@ -542,9 +542,11 @@ llvm::Expected<std::string> CompilerEngine::Library::emitCppHeader() {
|
||||
out << " static const std::string name = \"" << params.functionName
|
||||
<< "\";\n";
|
||||
out << "\n";
|
||||
out << " static outcome::checked<extract_t, StringError>\n";
|
||||
out << " static outcome::checked<" << params.functionName
|
||||
<< "_t, StringError>\n";
|
||||
out << " load(std::string outputLib)\n";
|
||||
out << " { return extract_t::load(name, outputLib); }\n";
|
||||
out << " { return " << params.functionName
|
||||
<< "_t::load(name, outputLib); }\n";
|
||||
out << "} // namespace " << params.functionName << "\n";
|
||||
}
|
||||
out << "\n";
|
||||
|
||||
Reference in New Issue
Block a user