2019-04-28 07:38:23 +00:00
|
|
|
idf_component_register(SRCS "cxx_exception_stubs.cpp"
|
|
|
|
"cxx_guards.cpp")
|
2018-01-12 02:49:13 +00:00
|
|
|
|
2019-06-04 11:05:33 +00:00
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC stdc++ gcc)
|
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u __cxa_guard_dummy")
|
2018-01-12 02:49:13 +00:00
|
|
|
|
2019-04-24 13:02:25 +00:00
|
|
|
if(NOT CONFIG_COMPILER_CXX_EXCEPTIONS)
|
2019-06-04 11:05:33 +00:00
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u __cxx_fatal_exception")
|
2018-01-12 02:49:13 +00:00
|
|
|
endif()
|