[llvm] [Bazel] Fixes 38d295d (PR #229142)
Anshul Nigham via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 5 09:50:48 PDT 2026
https://github.com/nigham updated https://github.com/llvm/llvm-project/pull/229142
>From 4a0e28aff6ad40f290ee9a0a87cae9c3a1976db2 Mon Sep 17 00:00:00 2001
From: Google Bazel Bot <google-bazel-bot at google.com>
Date: Mon, 5 Oct 2026 16:26:08 +0000
Subject: [PATCH] Fix Bazel build for 38d295d
Buildkite error link: https://buildkite.com/llvm-project/upstream-bazel/builds?commit=38d295d0ba0bb09513bad1787c1e7320c8ddc72c
---
.../llvm-project-overlay/libc/BUILD.bazel | 19 +++++++++++++++++++
.../libc/test/src/arpa/inet/BUILD.bazel | 14 ++++++++++++++
2 files changed, 33 insertions(+)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 42f1a4e437108..00ad1fc087f12 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -5047,6 +5047,24 @@ libc_function(
],
)
+libc_function(
+ name = "inet_pton",
+ srcs = ["src/arpa/inet/inet_pton.cpp"],
+ hdrs = ["src/arpa/inet/inet_pton.h"],
+ deps = [
+ ":__support_common",
+ ":__support_libc_errno",
+ ":__support_macros_config",
+ ":__support_macros_null_check",
+ ":__support_net_address",
+ ":hdr_errno_macros",
+ ":hdr_stdint_proxy",
+ ":hdr_sys_socket_macros",
+ ":types_struct_in6_addr",
+ ":types_struct_in_addr",
+ ],
+)
+
libc_function(
name = "ntohl",
srcs = ["src/arpa/inet/ntohl.cpp"],
@@ -11654,6 +11672,7 @@ libc_support_library(
":__support_cpp_span",
":__support_cpp_string_view",
":__support_ctype_utils",
+ ":__support_fixedvector",
":__support_libc_assert",
":__support_macros_config",
":__support_str_to_integer",
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/arpa/inet/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/arpa/inet/BUILD.bazel
index 29ef2cf4b1fc4..67de94ce9bbe4 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/arpa/inet/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/arpa/inet/BUILD.bazel
@@ -73,6 +73,20 @@ libc_test(
],
)
+libc_test(
+ name = "inet_pton_test",
+ srcs = ["inet_pton_test.cpp"],
+ deps = [
+ "//libc:__support_common",
+ "//libc:hdr_errno_macros",
+ "//libc:hdr_sys_socket_macros",
+ "//libc:inet_pton",
+ "//libc:string_memory_utils",
+ "//libc:types_struct_in6_addr",
+ "//libc:types_struct_in_addr",
+ ],
+)
+
libc_test(
name = "ntohl_test",
srcs = ["ntohl_test.cpp"],
More information about the llvm-commits
mailing list