Skip to content

Commit

Permalink
Disable rtti in ethash library
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Jun 12, 2019
1 parent ce4656c commit 5ee4817
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ethash/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ add_library(

target_link_libraries(ethash PRIVATE keccak)
target_include_directories(ethash PUBLIC $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>)
if(CABLE_COMPILER_GNULIKE AND NOT SANITIZE MATCHES undefined)
target_compile_options(ethash PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>)
endif()

install(
TARGETS ethash
Expand Down

0 comments on commit 5ee4817

Please sign in to comment.