[libc-commits] [libc] [libc] Fix scudo integration test (PR #92967)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue May 21 14:40:42 PDT 2024
https://github.com/michaelrj-google created https://github.com/llvm/llvm-project/pull/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
>From 661614b48290edeaf2781b8177ce7a7752cdee44 Mon Sep 17 00:00:00 2001
From: Michael Jones <michaelrj at google.com>
Date: Tue, 21 May 2024 14:36:49 -0700
Subject: [PATCH] [libc] Fix scudo integration test
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
---
libc/test/integration/scudo/CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libc/test/integration/scudo/CMakeLists.txt b/libc/test/integration/scudo/CMakeLists.txt
index 8a085b618044b..a5f7e3b63d24c 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(
More information about the libc-commits
mailing list