Skip to content

Commit

Permalink
Explicitly disable rtti
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev committed Jan 18, 2021
1 parent e0da987 commit 852cd1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
# When clad is in debug mode the llvm package thinks it is built with -frtti.
# For consistency we should set it to the correct value.
set(LLVM_CONFIG_HAS_RTTI NO CACHE BOOL "" FORCE)
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
endif ()


## Init

Expand Down

0 comments on commit 852cd1d

Please sign in to comment.