aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2024-05-21 16:06:20 -0700
committerGitHub <noreply@github.com>2024-05-21 16:06:20 -0700
commita5bab70d0667d3bd709720c5c78870b8ad280545 (patch)
tree20e632a9f5dd9601caf4b7e415712fbf2cebf454
parent42ba740afffa16f991be6aa36626bd872d41ebc0 (diff)
downloadllvm-a5bab70d0667d3bd709720c5c78870b8ad280545.zip
llvm-a5bab70d0667d3bd709720c5c78870b8ad280545.tar.gz
llvm-a5bab70d0667d3bd709720c5c78870b8ad280545.tar.bz2
[libc] Fix scudo integration test (#92967)
When scudo is built with LLVM-libc's headers, certain functions also need to be linked from LLVM-libc. This patch adds those functions to the list to be linked into the specific scudo test, which uses a minimal subset of libc. Fixes #92861 and #59453
-rw-r--r--libc/test/integration/scudo/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/test/integration/scudo/CMakeLists.txt b/libc/test/integration/scudo/CMakeLists.txt
index 8a085b6..a5f7e3b 100644
--- a/libc/test/integration/scudo/CMakeLists.txt
+++ b/libc/test/integration/scudo/CMakeLists.txt
@@ -9,6 +9,7 @@ endif()
# test will have to link to the LLVM libc startup system. LLVM libc's startup
# system is not complete enough to allow this. It is also desireable to
# keep the dependencies as minimal as possible.
+
add_entrypoint_library(
libc_for_scudo_integration_test
DEPENDS
@@ -17,6 +18,9 @@ add_entrypoint_library(
libc.src.stdlib.realloc
libc.src.stdlib.aligned_alloc
libc.src.stdlib.free
+ libc.src.errno.errno
+ libc.src.unistd.__llvm_libc_syscall
+ libc.src.sched.__sched_getcpucount
)
add_executable(