Skip to content

Commit

Permalink
Append -fno-rtti and -rdynamic for ion-bb.so
Browse files Browse the repository at this point in the history
  • Loading branch information
Fixstars-iizuka committed Oct 13, 2021
1 parent 388bc46 commit c8874ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/ImportIonBB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit c8874ac

Please sign in to comment.