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:
Andi Drebes
2021-10-25 11:02:48 +02:00
parent e76aee7e10
commit 3ae924e174

View File

@@ -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