Skip to content

Commit 4d89356

Browse files
[libc][bazel] disable epoll_pwait2 (#80362)
Similar to #80051. The epoll_pwait2 syscall isn't available on all target platforms, and this is causing downstream test failures. This patch disables it until it can be detected whether or not it is available.
1 parent 8fd0bce commit 4d89356

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3218,12 +3218,14 @@ libc_function(
32183218
],
32193219
)
32203220

3221-
libc_function(
3222-
name = "epoll_pwait2",
3223-
srcs = ["src/sys/epoll/linux/epoll_pwait2.cpp"],
3224-
hdrs = ["src/sys/epoll/epoll_pwait2.h"],
3225-
deps = [
3226-
":__support_osutil_syscall",
3227-
":errno",
3228-
],
3229-
)
3221+
#TODO: Enable once epoll_pwait2 availablilty can be checked first.
3222+
# https://github.com/llvm/llvm-project/issues/80060
3223+
# libc_function(
3224+
# name = "epoll_pwait2",
3225+
# srcs = ["src/sys/epoll/linux/epoll_pwait2.cpp"],
3226+
# hdrs = ["src/sys/epoll/epoll_pwait2.h"],
3227+
# deps = [
3228+
# ":__support_osutil_syscall",
3229+
# ":errno",
3230+
# ],
3231+
# )

utils/bazel/llvm-project-overlay/libc/test/src/sys/epoll/BUILD.bazel

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ libc_test(
2626
],
2727
)
2828

29-
libc_test(
30-
name = "epoll_pwait2_test",
31-
srcs = ["linux/epoll_pwait2_test.cpp"],
32-
libc_function_deps = [
33-
"//libc:epoll_pwait2",
34-
],
35-
)
29+
#TODO: Enable once epoll_pwait2 availablilty can be checked first.
30+
# https://github.com/llvm/llvm-project/issues/80060
31+
# libc_test(
32+
# name = "epoll_pwait2_test",
33+
# srcs = ["linux/epoll_pwait2_test.cpp"],
34+
# libc_function_deps = [
35+
# "//libc:epoll_pwait2",
36+
# ],
37+
# )

0 commit comments

Comments
 (0)