Skip to content

Commit fac6d3d

Browse files
[libc][bazel] mark epoll funcitons as weak (llvm#81327)
Downstream there's a user that intercepts these functions and overlays them. This causes symbol conflicts if neither function is marked weak. In future the intent is to move to this to being a downstream configuration option.
1 parent 11e5e22 commit fac6d3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3218,6 +3218,7 @@ libc_function(
32183218
name = "epoll_wait",
32193219
srcs = ["src/sys/epoll/linux/epoll_wait.cpp"],
32203220
hdrs = ["src/sys/epoll/epoll_wait.h"],
3221+
weak = True,
32213222
deps = [
32223223
":__support_osutil_syscall",
32233224
":errno",
@@ -3228,6 +3229,7 @@ libc_function(
32283229
name = "epoll_pwait",
32293230
srcs = ["src/sys/epoll/linux/epoll_pwait.cpp"],
32303231
hdrs = ["src/sys/epoll/epoll_pwait.h"],
3232+
weak = True,
32313233
deps = [
32323234
":__support_osutil_syscall",
32333235
":errno",
@@ -3240,6 +3242,7 @@ libc_function(
32403242
# name = "epoll_pwait2",
32413243
# srcs = ["src/sys/epoll/linux/epoll_pwait2.cpp"],
32423244
# hdrs = ["src/sys/epoll/epoll_pwait2.h"],
3245+
# weak = True,
32433246
# deps = [
32443247
# ":__support_osutil_syscall",
32453248
# ":errno",

0 commit comments

Comments
 (0)