[libc-commits] [libc] fix: add missing header dependencies for sched objects (PR #78741)
via libc-commits
libc-commits at lists.llvm.org
Fri Jan 19 08:18:36 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Schrodinger ZHU Yifan (SchrodingerZhu)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/78741.diff
2 Files Affected:
- (modified) libc/src/sched/linux/CMakeLists.txt (+8)
- (modified) libc/src/spawn/linux/CMakeLists.txt (+1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/78741
More information about the libc-commits
mailing list