From c8874ac5824e530a6c3b509dff36a7129b313bc2 Mon Sep 17 00:00:00 2001 From: Takuro Iizuka Date: Wed, 13 Oct 2021 15:14:47 -0700 Subject: [PATCH] Append -fno-rtti and -rdynamic for ion-bb.so --- cmake/ImportIonBB.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/ImportIonBB.cmake b/cmake/ImportIonBB.cmake index 5c4bfbb9..2e57f836 100644 --- a/cmake/ImportIonBB.cmake +++ b/cmake/ImportIonBB.cmake @@ -49,5 +49,10 @@ macro(ion_import_building_block) add_library(ion-bb SHARED ${CMAKE_BINARY_DIR}/ion-bb.cc) target_include_directories(ion-bb PUBLIC ${PROJECT_SOURCE_DIR}/include ${ION_BB_INCLUDE_DIRS}) target_link_libraries(ion-bb PUBLIC ion-core ${ION_BB_LIBRARIES}) + if(UNIX) + target_compile_options(ion-bb + PUBLIC -fno-rtti # For Halide::Generator + PUBLIC -rdynamic) # For JIT compiling + endif() install(TARGETS ion-bb DESTINATION lib) endmacro()