mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
enhance(compiler): Disable RTTI for unit tests
LLVM and MLIR are compiled without runtime type information (RTTI). Use the same restrictions for unit tests to avoid linker errors related to typeinfo when building the test executable.
This commit is contained in:
@@ -2,11 +2,14 @@ enable_testing()
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
|
||||
add_executable(
|
||||
end_to_end_jit_test
|
||||
end_to_end_jit_test.cc
|
||||
)
|
||||
)
|
||||
|
||||
set_source_files_properties(
|
||||
end_to_end_jit_test.cc PROPERTIES COMPILE_FLAGS "-fno-rtti")
|
||||
|
||||
target_link_libraries(
|
||||
end_to_end_jit_test
|
||||
gtest_main
|
||||
|
||||
Reference in New Issue
Block a user