aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2022-01-12 11:51:53 -0800
committerMichael Jones <michaelrj@google.com>2022-01-14 13:32:42 -0800
commit0b442db9f62e85af1968f0df1087ee9de1d43d9a (patch)
tree5a1985b8bf1fb1261031d7c1e1b2d612782b4923 /libc
parentfa6a2876c7e43fbb37c076dcf80ffe1ac22e49fc (diff)
downloadllvm-0b442db9f62e85af1968f0df1087ee9de1d43d9a.zip
llvm-0b442db9f62e85af1968f0df1087ee9de1d43d9a.tar.gz
llvm-0b442db9f62e85af1968f0df1087ee9de1d43d9a.tar.bz2
[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
Diffstat (limited to 'libc')
-rw-r--r--libc/config/linux/x86_64/entrypoints.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index 819a5ca..578fa2d 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -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