[libc] move strdup out of requiring SCUDO

strdup needs either scudo enabled or fullbuild disabled, this properly
adds the second condition

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D117138
This commit is contained in:
Michael Jones 2022-01-12 11:51:53 -08:00
parent fa6a2876c7
commit 0b442db9f6
1 changed files with 4 additions and 0 deletions

View File

@ -242,7 +242,11 @@ if(LLVM_LIBC_INCLUDE_SCUDO)
libc.src.stdlib.calloc
libc.src.stdlib.realloc
libc.src.stdlib.free
)
endif()
if(LLVM_LIBC_INCLUDE_SCUDO OR NOT LLVM_LIBC_FULL_BUILD)
list(APPEND TARGET_LIBC_ENTRYPOINTS
# string.h entrypoints that depend on malloc
libc.src.string.strdup
libc.src.string.strndup