This commit moves the files under `subsys/cpp` directory to the `lib/cpp` directory because the C++ ABI runtime library and the standard C++ library components are not a "subsystem" (aka. API) in conventional sense and is better described as a "library." Classifying the C++ ABI runtime library and the standard C++ library as "libraries" instead of "subsystems" also better aligns with how the existing C standard library implementation (`lib/libc`) is handled. Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
31 lines
483 B
C
31 lines
483 B
C
/*
|
|
* Copyright (c) 2021 Synopsys, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Author: Evgeniy Paltsev
|
|
*/
|
|
|
|
#ifdef CONFIG_CPP_STATIC_INIT_GNU
|
|
|
|
void __do_global_ctors_aux(void);
|
|
void __do_init_array_aux(void);
|
|
|
|
void z_cpp_init_static(void)
|
|
{
|
|
__do_global_ctors_aux();
|
|
__do_init_array_aux();
|
|
}
|
|
|
|
#else
|
|
|
|
#ifdef __CCAC__
|
|
void __do_global_ctors_aux(void);
|
|
|
|
void z_cpp_init_static(void)
|
|
{
|
|
__do_global_ctors_aux();
|
|
}
|
|
#endif /* __CCAC__ */
|
|
|
|
#endif /* CONFIG_CPP_STATIC_INIT_GNU */
|