Skip to content

Commit

Permalink
core/fw: disable exceptions and rtti on tokenvap.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
vs49688 committed Aug 25, 2024
1 parent cba4e3a commit ea36f66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/fw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ set(FW_FILES
${CMAKE_CURRENT_BINARY_DIR}/dev_objs.c
)

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set_source_files_properties(tokenval.cpp PROPERTIES
# Stupid "__gxx_personality_v0@@CXXABI_1.3"
COMPILE_OPTIONS "-fno-exceptions;-fno-rtti"
)
endif()

add_library(fw OBJECT
${FW_FILES}
${FW_DEV_FILES}
Expand Down

0 comments on commit ea36f66

Please sign in to comment.