[llvm] [Bazel] Fixes bcc9a55 (PR #195091)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 07:14:26 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: forking-google-bazel-bot[bot]

<details>
<summary>Changes</summary>

This fixes bcc9a55bdb228661d98444f0d6c74b47ed0426bb.



---
Full diff: https://github.com/llvm/llvm-project/pull/195091.diff


1 Files Affected:

- (modified) utils/bazel/llvm-project-overlay/libc/BUILD.bazel (+42) 


``````````diff
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index a7499edaf0c2a..85b8c64dc284e 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -2020,6 +2020,23 @@ libc_support_library(
     ],
 )
 
+libc_support_library(
+    name = "__support_osutil_linux_syscall_wrappers_sched_getaffinity",
+    hdrs = ["src/__support/OSUtil/linux/syscall_wrappers/sched_getaffinity.h"],
+    target_compatible_with = select({
+        "@platforms//os:linux": [],
+        "//conditions:default": ["@platforms//:incompatible"],
+    }),
+    deps = [
+        ":__support_common",
+        ":__support_cpp_span",
+        ":__support_error_or",
+        ":__support_macros_config",
+        ":__support_osutil_syscall",
+        ":types_pid_t",
+    ],
+)
+
 libc_support_library(
     name = "__support_osutil_linux_syscall_wrappers_write",
     hdrs = ["src/__support/OSUtil/linux/syscall_wrappers/write.h"],
@@ -2084,6 +2101,29 @@ libc_support_library(
     ],
 )
 
+libc_support_library(
+    name = "__support_osutil_linux_sysinfo",
+    hdrs = ["src/__support/OSUtil/linux/sysinfo.h"],
+    target_compatible_with = select({
+        "@platforms//os:linux": [],
+        "//conditions:default": ["@platforms//:incompatible"],
+    }),
+    deps = [
+        ":__support_common",
+        ":__support_cpp_array",
+        ":__support_cpp_bit",
+        ":__support_cpp_optional",
+        ":__support_ctype_utils",
+        ":__support_error_or",
+        ":__support_macros_config",
+        ":__support_osutil_linux_syscall_wrappers_close",
+        ":__support_osutil_linux_syscall_wrappers_open",
+        ":__support_osutil_linux_syscall_wrappers_read",
+        ":__support_osutil_linux_syscall_wrappers_sched_getaffinity",
+        ":hdr_errno_macros",
+    ],
+)
+
 libc_support_library(
     name = "__support_osutil_vdso",
     hdrs = [
@@ -11412,7 +11452,9 @@ libc_function(
         ":__support_libc_errno",
         ":__support_macros_config",
         ":__support_osutil_linux_auxv",
+        ":__support_osutil_linux_sysinfo",
         ":errno",
+        ":hdr_sys_auxv_macros",
         ":hdr_unistd_macros",
     ],
 )

``````````

</details>


https://github.com/llvm/llvm-project/pull/195091


More information about the llvm-commits mailing list