aboutsummaryrefslogtreecommitdiff
path: root/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'utils/bazel/llvm-project-overlay/libc/BUILD.bazel')
-rw-r--r--utils/bazel/llvm-project-overlay/libc/BUILD.bazel47
1 files changed, 45 insertions, 2 deletions
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 936bc12..5d87e32 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -1502,6 +1502,21 @@ libc_support_library(
)
libc_support_library(
+ name = "__support_osutil_linux_auxv",
+ hdrs = ["src/__support/OSUtil/linux/auxv.h"],
+ target_compatible_with = select({
+ "@platforms//os:linux": [],
+ "//conditions:default": ["@platforms//:incompatible"],
+ }),
+ deps = [
+ ":__support_common",
+ ":__support_osutil_syscall",
+ ":__support_threads_callonce",
+ ":hdr_fcntl_macros",
+ ],
+)
+
+libc_support_library(
name = "__support_osutil_vdso",
hdrs = [
"src/__support/OSUtil/linux/vdso.h",
@@ -2933,6 +2948,22 @@ libc_support_library(
)
libc_support_library(
+ name = "__support_math_exp2m1f",
+ hdrs = ["src/__support/math/exp2m1f.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fma",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_rounding_mode",
+ ":__support_macros_optimization",
+ ":__support_math_common_constants",
+ ":__support_math_exp10f_utils",
+ ],
+)
+
+libc_support_library(
name = "__support_math_exp10",
hdrs = ["src/__support/math/exp10.h"],
deps = [
@@ -3719,8 +3750,7 @@ libc_math_function(
libc_math_function(
name = "exp2m1f",
additional_deps = [
- ":__support_fputil_polyeval",
- ":__support_math_exp10f_utils",
+ ":__support_math_exp2m1f",
],
)
@@ -6336,6 +6366,19 @@ libc_function(
],
)
+# WARNING: NOT FULLY IMPLEMENTED, FOR TESTING USE ONLY
+libc_function(
+ name = "sysconf",
+ srcs = ["src/unistd/linux/sysconf.cpp"],
+ hdrs = ["src/unistd/sysconf.h"],
+ deps = [
+ ":__support_common",
+ ":__support_osutil_linux_auxv",
+ ":errno",
+ ":hdr_unistd_macros",
+ ],
+)
+
libc_function(
name = "write",
srcs = ["src/unistd/linux/write.cpp"],