Skip to content

Conversation

@boomanaiden154
Copy link
Contributor

Move some headers into the common __support_time library now that they are no longer platform specific.

Move some headers into the common __support_time library now that they
are no longer platform specific.
@llvmbot llvmbot added libc bazel "Peripheral" support tier build system: utils/bazel labels Dec 8, 2025
@llvmbot
Copy link
Member

llvmbot commented Dec 8, 2025

@llvm/pr-subscribers-libc

Author: Aiden Grossman (boomanaiden154)

Changes

Move some headers into the common __support_time library now that they are no longer platform specific.


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

1 Files Affected:

  • (modified) utils/bazel/llvm-project-overlay/libc/BUILD.bazel (+3-33)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 33609d04f168d..17185dfe20fac 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -1652,7 +1652,7 @@ libc_support_library(
         ":__support_cpp_optional",
         ":__support_osutil_syscall",
         ":__support_threads_linux_futex_word_type",
-        ":__support_time_linux_abs_timeout",
+        ":__support_time",
         ":types_struct_timespec",
     ],
 )
@@ -1680,8 +1680,7 @@ libc_support_library(
         ":__support_cpp_optional",
         ":__support_threads_linux_futex_utils",
         ":__support_threads_sleep",
-        ":__support_time_linux_abs_timeout",
-        ":__support_time_linux_monotonicity",
+        ":__support_time",
         ":types_pid_t",
     ],
 )
@@ -1733,6 +1732,7 @@ libc_support_library(
     deps = [
         ":__support_common",
         ":__support_error_or",
+        ":__support_libc_assert",
         ":hdr_time_macros",
         ":types_clockid_t",
         ":types_struct_timespec",
@@ -1740,21 +1740,6 @@ libc_support_library(
     ],
 )
 
-libc_support_library(
-    name = "__support_time_linux_abs_timeout",
-    hdrs = ["src/__support/time/linux/abs_timeout.h"],
-    target_compatible_with = select({
-        "@platforms//os:linux": [],
-        "//conditions:default": ["@platforms//:incompatible"],
-    }),
-    deps = [
-        ":__support_cpp_expected",
-        ":__support_time",
-        ":hdr_time_macros",
-        ":types_struct_timespec",
-    ],
-)
-
 libc_support_library(
     name = "__support_time_clock_conversion",
     hdrs = ["src/__support/time/clock_conversion.h"],
@@ -1784,21 +1769,6 @@ libc_support_library(
     ],
 )
 
-libc_support_library(
-    name = "__support_time_linux_monotonicity",
-    hdrs = ["src/__support/time/linux/monotonicity.h"],
-    target_compatible_with = select({
-        "@platforms//os:linux": [],
-        "//conditions:default": ["@platforms//:incompatible"],
-    }),
-    deps = [
-        ":__support_libc_assert",
-        ":__support_time_clock_conversion",
-        ":__support_time_linux_abs_timeout",
-        ":hdr_time_macros",
-    ],
-)
-
 libc_support_library(
     name = "__support_wctype_utils",
     hdrs = ["src/__support/wctype_utils.h"],

@boomanaiden154 boomanaiden154 merged commit c7f62d2 into llvm:main Dec 8, 2025
15 checks passed
@boomanaiden154 boomanaiden154 deleted the fix-2a5420ea5184a334c2af9f2f9f43de4dfc6b76d3 branch December 8, 2025 17:59
honeygoyal pushed a commit to honeygoyal/llvm-project that referenced this pull request Dec 9, 2025
Move some headers into the common __support_time library now that they
are no longer platform specific.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bazel "Peripheral" support tier build system: utils/bazel libc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants