feat: add runtimeLib link for library compilation

runtime library will be linked to compiled library
This commit is contained in:
youben11
2022-04-04 07:43:02 +01:00
committed by Ayoub Benaissa
parent bd6e8c7bbc
commit ec7d1232f1
7 changed files with 54 additions and 19 deletions

View File

@@ -66,8 +66,10 @@ jit_server_call(JITSupport_C support, mlir::concretelang::JITLambda &lambda,
}
// Library Support bindings ///////////////////////////////////////////////////
MLIR_CAPI_EXPORTED LibrarySupport_C library_support(const char *outputPath) {
return LibrarySupport_C{mlir::concretelang::LibrarySupport(outputPath)};
MLIR_CAPI_EXPORTED LibrarySupport_C
library_support(const char *outputPath, const char *runtimeLibraryPath) {
return LibrarySupport_C{
mlir::concretelang::LibrarySupport(outputPath, runtimeLibraryPath)};
}
std::unique_ptr<mlir::concretelang::LibraryCompilationResult>