mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
libcxx: adds tls&libcxxabi dependency
If libcxxabi is not enabled, the toolchain default implementation will be used. However, arm-gcc does not enable thread support by default, which will cause errors in a multi-threaded environment. libcxx depends on pthread_key_create Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
6d39b248a4
commit
a055734912
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,7 @@ config LIBCXX
|
||||||
select HAVE_CXXINITIALIZE
|
select HAVE_CXXINITIALIZE
|
||||||
select LIBC_LOCALE
|
select LIBC_LOCALE
|
||||||
select PTHREAD_MUTEX_TYPES
|
select PTHREAD_MUTEX_TYPES
|
||||||
|
depends on TLS_NELEM > 0
|
||||||
---help---
|
---help---
|
||||||
LLVM "libc++" C++ Standard Library
|
LLVM "libc++" C++ Standard Library
|
||||||
https://libcxx.llvm.org/
|
https://libcxx.llvm.org/
|
||||||
|
@ -70,6 +71,7 @@ if LIBCXX || UCLIBCXX
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "C++ low level library select"
|
prompt "C++ low level library select"
|
||||||
|
default LIBCXXABI if LIBCXX
|
||||||
default LIBSUPCXX
|
default LIBSUPCXX
|
||||||
|
|
||||||
config LIBCXXABI
|
config LIBCXXABI
|
||||||
|
|
Loading…
Reference in a new issue