Skip to content

Commit 6c61672

Browse files
[bazel] Port 2a5420e
Move some headers into the common __support_time library now that they are no longer platform specific.
1 parent f88d060 commit 6c61672

File tree

1 file changed

+3
-33
lines changed

1 file changed

+3
-33
lines changed

utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ libc_support_library(
16521652
":__support_cpp_optional",
16531653
":__support_osutil_syscall",
16541654
":__support_threads_linux_futex_word_type",
1655-
":__support_time_linux_abs_timeout",
1655+
":__support_time",
16561656
":types_struct_timespec",
16571657
],
16581658
)
@@ -1680,8 +1680,7 @@ libc_support_library(
16801680
":__support_cpp_optional",
16811681
":__support_threads_linux_futex_utils",
16821682
":__support_threads_sleep",
1683-
":__support_time_linux_abs_timeout",
1684-
":__support_time_linux_monotonicity",
1683+
":__support_time",
16851684
":types_pid_t",
16861685
],
16871686
)
@@ -1733,28 +1732,14 @@ libc_support_library(
17331732
deps = [
17341733
":__support_common",
17351734
":__support_error_or",
1735+
":__support_libc_assert",
17361736
":hdr_time_macros",
17371737
":types_clockid_t",
17381738
":types_struct_timespec",
17391739
":types_time_t",
17401740
],
17411741
)
17421742

1743-
libc_support_library(
1744-
name = "__support_time_linux_abs_timeout",
1745-
hdrs = ["src/__support/time/linux/abs_timeout.h"],
1746-
target_compatible_with = select({
1747-
"@platforms//os:linux": [],
1748-
"//conditions:default": ["@platforms//:incompatible"],
1749-
}),
1750-
deps = [
1751-
":__support_cpp_expected",
1752-
":__support_time",
1753-
":hdr_time_macros",
1754-
":types_struct_timespec",
1755-
],
1756-
)
1757-
17581743
libc_support_library(
17591744
name = "__support_time_clock_conversion",
17601745
hdrs = ["src/__support/time/clock_conversion.h"],
@@ -1784,21 +1769,6 @@ libc_support_library(
17841769
],
17851770
)
17861771

1787-
libc_support_library(
1788-
name = "__support_time_linux_monotonicity",
1789-
hdrs = ["src/__support/time/linux/monotonicity.h"],
1790-
target_compatible_with = select({
1791-
"@platforms//os:linux": [],
1792-
"//conditions:default": ["@platforms//:incompatible"],
1793-
}),
1794-
deps = [
1795-
":__support_libc_assert",
1796-
":__support_time_clock_conversion",
1797-
":__support_time_linux_abs_timeout",
1798-
":hdr_time_macros",
1799-
],
1800-
)
1801-
18021772
libc_support_library(
18031773
name = "__support_wctype_utils",
18041774
hdrs = ["src/__support/wctype_utils.h"],

0 commit comments

Comments
 (0)