[llvm] [bazel] Port 2a5420ea5184a334c2af9f2f9f43de4dfc6b76d3 (PR #171161)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 8 09:34:04 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
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
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"],
``````````
</details>
https://github.com/llvm/llvm-project/pull/171161
More information about the llvm-commits
mailing list