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