Files
concrete/compilers/concrete-compiler/compiler/lib/ServerLib/CMakeLists.txt
youben11 dc8b762708 fix: add a wrapper to compiled circuits to unify invocation
this was already implemented for JIT using mlir::ExecutionEngine, but
was using a different, and more complex way for library compilation and
execution, which was causing a bad calling convention at the assembly
level in MacOS M1 machine. This commits unify the invocation of JIT and
Library compiled circuit, solving the previously mentioned issue, but
also gives the ability to extend compiled libraries to support more than one
returned value
2023-03-14 11:18:55 +01:00

19 lines
451 B
CMake

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# using GCC
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.0)
add_compile_options(-Wno-error=cast-function-type -Wno-cast-function-type)
endif()
endif()
add_mlir_library(
ConcretelangServerLib
ServerLambda.cpp
DynamicModule.cpp
ADDITIONAL_HEADER_DIRS
${PROJECT_SOURCE_DIR}/include/concretelang/ServerLib
DEPENDS
mlir-headers
LINK_LIBS
ConcretelangRuntime
ConcretelangClientLib)