Skip to content

Commit 12c85cd

Browse files
committed
[bazel]: port for the libc change 142afde
1 parent ef4c91c commit 12c85cd

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ libc_support_library(
174174
hdrs = ["hdr/types/time_t.h"],
175175
)
176176

177+
libc_support_library(
178+
name = "types_pid_t",
179+
hdrs = ["hdr/types/pid_t.h"],
180+
)
181+
177182
############################### Support libraries ##############################
178183

179184
libc_support_library(
@@ -1146,6 +1151,33 @@ libc_support_library(
11461151
],
11471152
)
11481153

1154+
libc_support_library(
1155+
name = "__support_threads_sleep",
1156+
hdrs = ["src/__support/threads/sleep.h"],
1157+
)
1158+
1159+
libc_support_library(
1160+
name = "__support_threads_raw_mutex",
1161+
hdrs = [
1162+
"src/__support/threads/linux/raw_mutex.h",
1163+
],
1164+
defines = [
1165+
"LIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY",
1166+
"LIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT"
1167+
],
1168+
target_compatible_with = select({
1169+
"@platforms//os:linux": [],
1170+
"//conditions:default": ["@platforms//:incompatible"],
1171+
}),
1172+
deps = [
1173+
":__support_cpp_optional",
1174+
":__support_time_linux",
1175+
":__support_threads_linux_futex_utils",
1176+
":__support_threads_sleep",
1177+
":types_pid_t",
1178+
],
1179+
)
1180+
11491181
libc_support_library(
11501182
name = "__support_threads_mutex",
11511183
hdrs = [
@@ -1163,6 +1195,8 @@ libc_support_library(
11631195
":__support_cpp_atomic",
11641196
":__support_osutil_syscall",
11651197
":__support_threads_linux_futex_utils",
1198+
":__support_threads_raw_mutex",
1199+
":types_pid_t",
11661200
],
11671201
)
11681202

0 commit comments

Comments
 (0)