feat: parameterize artifact generation in lib compilation

This commit is contained in:
youben11
2022-04-28 13:57:11 +01:00
committed by Ayoub Benaissa
parent 61052a237b
commit f223f02ab7
8 changed files with 103 additions and 30 deletions

View File

@@ -60,9 +60,12 @@ jit_server_call(JITSupport_C support, mlir::concretelang::JITLambda &lambda,
// Library Support bindings ///////////////////////////////////////////////////
MLIR_CAPI_EXPORTED LibrarySupport_C
library_support(const char *outputPath, const char *runtimeLibraryPath) {
return LibrarySupport_C{
mlir::concretelang::LibrarySupport(outputPath, runtimeLibraryPath)};
library_support(const char *outputPath, const char *runtimeLibraryPath,
bool generateSharedLib, bool generateStaticLib,
bool generateClientParameters, bool generateCppHeader) {
return LibrarySupport_C{mlir::concretelang::LibrarySupport(
outputPath, runtimeLibraryPath, generateSharedLib, generateStaticLib,
generateClientParameters, generateCppHeader)};
}
std::unique_ptr<mlir::concretelang::LibraryCompilationResult>