Skip to content

Commit 7eb59a1

Browse files
author
Dmitry Chernenkov
committed
[Bazel] Fix libc Bazel build for 29be889
1 parent 20d3815 commit 7eb59a1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,22 @@ libc_support_library(
10761076
],
10771077
)
10781078

1079+
libc_support_library(
1080+
name = "__support_osutil_pid",
1081+
srcs = ["src/__support/OSUtil/linux/pid.cpp"],
1082+
hdrs = ["src/__support/OSUtil/pid.h"],
1083+
target_compatible_with = select({
1084+
"@platforms//os:linux": [],
1085+
"//conditions:default": ["@platforms//:incompatible"],
1086+
}),
1087+
deps = [
1088+
":__support_macros_attributes",
1089+
":__support_macros_optimization",
1090+
":__support_osutil_syscall",
1091+
":types_pid_t",
1092+
]
1093+
)
1094+
10791095
libc_support_library(
10801096
name = "__support_stringutil",
10811097
srcs = glob(["src/__support/StringUtil/tables/**/*.h"]) + [
@@ -3032,8 +3048,11 @@ libc_function(
30323048
hdrs = ["src/unistd/getpid.h"],
30333049
deps = [
30343050
":__support_common",
3051+
":__support_macros_config",
3052+
":__support_osutil_pid",
30353053
":__support_osutil_syscall",
30363054
":errno",
3055+
":types_pid_t",
30373056
],
30383057
)
30393058

0 commit comments

Comments
 (0)