[libc-commits] [libc] 128d53f - [libc] add missing header dependencies for sched objects (#78741)
via libc-commits
libc-commits at lists.llvm.org
Sun Jan 21 08:13:17 PST 2024
Author: Schrodinger ZHU Yifan
Date: 2024-01-21T11:13:12-05:00
New Revision: 128d53f44cae211ad5501733ec1d9bc787b6f7a9
URL: https://github.com/llvm/llvm-project/commit/128d53f44cae211ad5501733ec1d9bc787b6f7a9
DIFF: https://github.com/llvm/llvm-project/commit/128d53f44cae211ad5501733ec1d9bc787b6f7a9.diff
LOG: [libc] add missing header dependencies for sched objects (#78741)
This patch fixes full build problems in
https://github.com/llvm/llvm-project/issues/78721 (the header problem).
The `libc.a` target can be built now.
As a separate issue, `check-libc` is failing because undefined symbols
from `libunwind`, which I do not actually know the reason yet. I will be
looking into it.
Added:
Modified:
libc/src/sched/linux/CMakeLists.txt
libc/src/spawn/linux/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/src/sched/linux/CMakeLists.txt b/libc/src/sched/linux/CMakeLists.txt
index d53c6e5d45052e..ac95bf85da534f 100644
--- a/libc/src/sched/linux/CMakeLists.txt
+++ b/libc/src/sched/linux/CMakeLists.txt
@@ -52,6 +52,8 @@ add_entrypoint_object(
../sched_setparam.h
DEPENDS
libc.include.sys_syscall
+ libc.include.time
+ libc.include.sched
libc.src.__support.OSUtil.osutil
libc.src.errno.errno
)
@@ -64,6 +66,8 @@ add_entrypoint_object(
../sched_getparam.h
DEPENDS
libc.include.sys_syscall
+ libc.include.time
+ libc.include.sched
libc.src.__support.OSUtil.osutil
libc.src.errno.errno
)
@@ -76,6 +80,8 @@ add_entrypoint_object(
../sched_setscheduler.h
DEPENDS
libc.include.sys_syscall
+ libc.include.time
+ libc.include.sched
libc.src.__support.OSUtil.osutil
libc.src.errno.errno
)
@@ -87,6 +93,7 @@ add_entrypoint_object(
HDRS
../sched_getscheduler.h
DEPENDS
+ libc.include.sched
libc.include.sys_syscall
libc.src.__support.OSUtil.osutil
libc.src.errno.errno
@@ -124,6 +131,7 @@ add_entrypoint_object(
../sched_rr_get_interval.h
DEPENDS
libc.include.sys_syscall
+ libc.include.sched
libc.src.__support.OSUtil.osutil
libc.src.errno.errno
)
diff --git a/libc/src/spawn/linux/CMakeLists.txt b/libc/src/spawn/linux/CMakeLists.txt
index 9bd3ac50415b1f..9ef3a9d18b0c69 100644
--- a/libc/src/spawn/linux/CMakeLists.txt
+++ b/libc/src/spawn/linux/CMakeLists.txt
@@ -8,6 +8,7 @@ add_entrypoint_object(
libc.include.fcntl
libc.include.spawn
libc.include.sys_syscall
+ libc.include.signal
libc.src.__support.CPP.optional
libc.src.__support.OSUtil.osutil
libc.src.spawn.file_actions
More information about the libc-commits
mailing list