1add_libc_unittest( 2 utils_test 3 SUITE 4 libc_string_unittests 5 SRCS 6 address_test.cpp 7 backend_test.cpp 8 elements_test.cpp 9 memory_access_test.cpp 10 utils_test.cpp 11 COMPILE_OPTIONS 12 ${LIBC_COMPILE_OPTIONS_NATIVE} 13 -ffreestanding 14 -pthread 15 DEPENDS 16 libc.src.string.memory_utils.memory_utils 17 libc.src.__support.CPP.array 18 libc.src.__support.CPP.array_ref 19) 20 21if(NOT LLVM_LIBC_FULL_BUILD) 22# Disabling this unittest in fullbuild mode as #include<sstream> is pulling an 23# incomplete pthread implementation from llvm-libc. 24add_libc_unittest( 25 algorithm_test 26 SUITE 27 libc_string_unittests 28 SRCS 29 algorithm_test.cpp 30 DEPENDS 31 libc.src.string.memory_utils.memory_utils 32 libc.src.__support.CPP.array 33 libc.src.__support.CPP.array_ref 34) 35endif() 36