Skip to content

Commit a055734

Browse files
Gary-Hobsonxiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent 6d39b24 commit a055734

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/libxx/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ config LIBCXX
4545
select HAVE_CXXINITIALIZE
4646
select LIBC_LOCALE
4747
select PTHREAD_MUTEX_TYPES
48+
depends on TLS_NELEM > 0
4849
---help---
4950
LLVM "libc++" C++ Standard Library
5051
https://libcxx.llvm.org/
@@ -70,6 +71,7 @@ if LIBCXX || UCLIBCXX
7071

7172
choice
7273
prompt "C++ low level library select"
74+
default LIBCXXABI if LIBCXX
7375
default LIBSUPCXX
7476

7577
config LIBCXXABI

0 commit comments

Comments
 (0)