forked from OSchip/llvm-project
[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:
parent
fa6a2876c7
commit
0b442db9f6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue