2018-09-11 01:44:12 +00:00
|
|
|
set(COMPONENT_SRCS "cxx_exception_stubs.cpp"
|
|
|
|
"cxx_guards.cpp")
|
2018-03-22 06:27:10 +00:00
|
|
|
set(COMPONENT_REQUIRES)
|
2018-01-12 02:49:13 +00:00
|
|
|
register_component()
|
|
|
|
|
2018-11-11 07:36:10 +00:00
|
|
|
target_link_libraries(${COMPONENT_TARGET} stdc++)
|
2018-01-12 02:49:13 +00:00
|
|
|
|
2018-11-11 07:36:10 +00:00
|
|
|
target_link_libraries(${COMPONENT_TARGET} "-u __cxa_guard_dummy")
|
2018-01-12 02:49:13 +00:00
|
|
|
|
|
|
|
if(NOT CONFIG_CXX_EXCEPTIONS)
|
2018-11-11 07:36:10 +00:00
|
|
|
target_link_libraries(${COMPONENT_TARGET} "-u __cxx_fatal_exception")
|
2018-01-12 02:49:13 +00:00
|
|
|
endif()
|