Skip to content

Commit eb4904d

Browse files
committed
Update bazel files
Created using spr 1.3.6-beta.1
1 parent 4e70bf8 commit eb4904d

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,6 +1501,21 @@ libc_support_library(
15011501
],
15021502
)
15031503

1504+
libc_support_library(
1505+
name = "__support_osutil_linux_auxv",
1506+
hdrs = ["src/__support/OSUtil/linux/auxv.h"],
1507+
target_compatible_with = select({
1508+
"@platforms//os:linux": [],
1509+
"//conditions:default": ["@platforms//:incompatible"],
1510+
}),
1511+
deps = [
1512+
":__support_common",
1513+
":__support_osutil_syscall",
1514+
":__support_threads_callonce",
1515+
":hdr_fcntl_macros",
1516+
],
1517+
)
1518+
15041519
libc_support_library(
15051520
name = "__support_osutil_vdso",
15061521
hdrs = [
@@ -6336,6 +6351,19 @@ libc_function(
63366351
],
63376352
)
63386353

6354+
# WARNING: NOT FULLY IMPLEMENTED, FOR TESTING USE ONLY
6355+
libc_function(
6356+
name = "sysconf",
6357+
srcs = ["src/unistd/linux/sysconf.cpp"],
6358+
hdrs = ["src/unistd/sysconf.h"],
6359+
deps = [
6360+
":__support_common",
6361+
":__support_osutil_linux_auxv",
6362+
":errno",
6363+
":hdr_unistd_macros",
6364+
],
6365+
)
6366+
63396367
libc_function(
63406368
name = "write",
63416369
srcs = ["src/unistd/linux/write.cpp"],

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ libc_test(
3030
"//libc:mmap",
3131
"//libc:munlock",
3232
"//libc:munmap",
33+
"//libc:sysconf",
3334
],
3435
)
3536

@@ -48,6 +49,7 @@ libc_test(
4849
"//libc:munlock",
4950
"//libc:munlockall",
5051
"//libc:munmap",
52+
"//libc:sysconf",
5153
],
5254
)
5355

@@ -89,6 +91,7 @@ libc_test(
8991
"//libc:msync",
9092
"//libc:munlock",
9193
"//libc:munmap",
94+
"//libc:sysconf",
9295
],
9396
)
9497

@@ -111,6 +114,7 @@ libc_test(
111114
"//libc:munmap",
112115
"//libc:open",
113116
"//libc:remap_file_pages",
117+
"//libc:sysconf",
114118
],
115119
)
116120

0 commit comments

Comments
 (0)