mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-10 04:35:03 -05:00
When building the ServerLib before any other concretelang target that depends on `mlir-headers`, compilation fails due to missing include files generated by tablegen, e.g., `llvm/IR/Attributes.inc`. This adds a dependency from ServerLib to `mlir-headers`, which forces the generation of the missing header files.
31 lines
736 B
CMake
31 lines
736 B
CMake
add_compile_options( -Werror )
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
|
# using Clang
|
|
add_compile_options( -Wno-error=pessimizing-move -Wno-pessimizing-move )
|
|
elseif (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)
|
|
add_compile_options( -Werror -Wno-error=pessimizing-move -Wno-pessimizing-move )
|
|
endif()
|
|
endif()
|
|
|
|
add_mlir_library(
|
|
ConcretelangServerLib
|
|
|
|
DynamicRankCall.cpp
|
|
ServerLambda.cpp
|
|
DynamicModule.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${PROJECT_SOURCE_DIR}/include/concretelang/ServerLib
|
|
|
|
DEPENDS
|
|
mlir-headers
|
|
|
|
LINK_LIBS
|
|
ConcretelangRuntime
|
|
ConcretelangClientLib
|
|
)
|