Skip to content

Commit a5bab70

Browse files
[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
1 parent 42ba740 commit a5bab70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libc/test/integration/scudo/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ endif()
99
# test will have to link to the LLVM libc startup system. LLVM libc's startup
1010
# system is not complete enough to allow this. It is also desireable to
1111
# keep the dependencies as minimal as possible.
12+
1213
add_entrypoint_library(
1314
libc_for_scudo_integration_test
1415
DEPENDS
@@ -17,6 +18,9 @@ add_entrypoint_library(
1718
libc.src.stdlib.realloc
1819
libc.src.stdlib.aligned_alloc
1920
libc.src.stdlib.free
21+
libc.src.errno.errno
22+
libc.src.unistd.__llvm_libc_syscall
23+
libc.src.sched.__sched_getcpucount
2024
)
2125

2226
add_executable(

0 commit comments

Comments
 (0)