[libc-commits] [libc] 0b442db - [libc] move strdup out of requiring SCUDO

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri Jan 14 13:32:46 PST 2022


Author: Michael Jones
Date: 2022-01-14T13:32:42-08:00
New Revision: 0b442db9f62e85af1968f0df1087ee9de1d43d9a

URL: https://github.com/llvm/llvm-project/commit/0b442db9f62e85af1968f0df1087ee9de1d43d9a
DIFF: https://github.com/llvm/llvm-project/commit/0b442db9f62e85af1968f0df1087ee9de1d43d9a.diff

LOG: [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

Added: 
    

Modified: 
    libc/config/linux/x86_64/entrypoints.txt

Removed: 
    


################################################################################
diff  --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index 819a5ca0a0a97..578fa2dd30d36 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


        


More information about the libc-commits mailing list