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