[libc-commits] [libc] fix: add missing header dependencies for sched objects (PR #78741)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Fri Jan 19 08:18:06 PST 2024
https://github.com/SchrodingerZhu created https://github.com/llvm/llvm-project/pull/78741
None
>From d7181c6d274833e065626f716030b8b155b995a5 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
Date: Fri, 19 Jan 2024 11:17:31 -0500
Subject: [PATCH] fix: add missing header dependencies for sched objects
---
libc/src/sched/linux/CMakeLists.txt | 8 ++++++++
libc/src/spawn/linux/CMakeLists.txt | 1 +
2 files changed, 9 insertions(+)
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