diff options
author | Michael Jones <michaelrj@google.com> | 2021-10-19 16:06:52 -0700 |
---|---|---|
committer | Michael Jones <michaelrj@google.com> | 2021-10-27 10:21:01 -0700 |
commit | 7dcdbabb3b1501b90a51b36e8e4f4667b6902b8b (patch) | |
tree | b3496d811c78992d49df0cdc7a4906d0791b73e6 /libc/lib | |
parent | 6c9f207826ef981062b601049dd6ba535db87d53 (diff) | |
download | llvm-7dcdbabb3b1501b90a51b36e8e4f4667b6902b8b.tar.gz |
[libc] add malloc funcs as external entrypoints
malloc, calloc, realloc, and free are all functions that other libc
functions depend on, but are pulled from external sources, instead of
having an internal implementation. This patch adds a way to include
functions like that as entrypoints in the list of external entrypoints,
and includes the malloc functions using this new path.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D112104
Diffstat (limited to 'libc/lib')
-rw-r--r-- | libc/lib/CMakeLists.txt | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libc/lib/CMakeLists.txt b/libc/lib/CMakeLists.txt index 67fe75ea4347..c5d48e8480f7 100644 --- a/libc/lib/CMakeLists.txt +++ b/libc/lib/CMakeLists.txt @@ -1,27 +1,7 @@ -set(SCUDO_DEPS "") - -if(LLVM_LIBC_INCLUDE_SCUDO) - include(../../compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake) - if(NOT (LIBC_TARGET_ARCHITECTURE IN_LIST ALL_SCUDO_STANDALONE_SUPPORTED_ARCH)) - message(FATAL_ERROR "Architecture ${LIBC_TARGET_ARCHITECTURE} is not supported by SCUDO. -Either disable LLVM_LIBC_INCLUDE_SCUDO or change your target architecture.") - endif() - list(APPEND SCUDO_DEPS RTScudoStandalone.${LIBC_TARGET_ARCHITECTURE} RTScudoStandaloneCWrappers.${LIBC_TARGET_ARCHITECTURE}) - if((LIBC_TARGET_ARCHITECTURE IN_LIST ALL_GWP_ASAN_SUPPORTED_ARCH) AND COMPILER_RT_BUILD_GWP_ASAN) - list(APPEND SCUDO_DEPS RTGwpAsan.${LIBC_TARGET_ARCHITECTURE} - RTGwpAsanBacktraceLibc.${LIBC_TARGET_ARCHITECTURE} - RTGwpAsanSegvHandler.${LIBC_TARGET_ARCHITECTURE}) - elseif(COMPILER_RT_BUILD_GWP_ASAN) - message(WARNING "Architecture ${LIBC_TARGET_ARCHITECTURE} is not supported by GWP-ASan. Skipping.") - endif() -endif() - add_entrypoint_library( llvmlibc DEPENDS ${TARGET_LLVMLIBC_ENTRYPOINTS} - EXT_DEPS - ${SCUDO_DEPS} ) if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR) |