libcxx: porting libcxx test.

porting libcxx test case to nuttx.

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
cuiziwei
2024-11-26 15:55:44 +08:00
committed by Alan C. Assis
parent d53cd33bf5
commit e9bbf2928b
3 changed files with 202 additions and 3 deletions
+4
View File
@@ -220,6 +220,10 @@ if(CONFIG_LIBCXX)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-D_LIBCPP_DISABLE_AVAILABILITY>)
endif()
if(CONFIG_LIBCXX_TEST)
add_link_options(-Wl,-latomic)
endif()
if(APPLE)
add_link_options(-Wl,-dead_strip)
else()