[llvm] [bazel][libc] Fix 8acfc364e9f788367ff0beab5c76a3527a689a0b (PR #203443)

Jordan Rupprecht via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 20:00:54 PDT 2026


https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/203443

Add extra htons yaml deps

>From 94fcb2988075df844cd7d6e1fa0f4946067c2a37 Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Thu, 11 Jun 2026 19:59:26 -0700
Subject: [PATCH] add extra htons yaml deps

---
 utils/bazel/llvm-project-overlay/libc/BUILD.bazel | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 1487872ac3cbd..3f1e4f7de9a3d 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -168,7 +168,10 @@ LLVM_LIBC_HEADERS = [
         "sys/syscall",
         has_def_template = True,
     ),
-    libc_header_info("arpa/inet"),
+    libc_header_info(
+        "arpa/inet",
+        other_srcs = ["include/htons-family.yaml"],
+    ),
     libc_header_info("complex"),
     libc_header_info("ctype"),
     libc_header_info("dirent"),
@@ -182,7 +185,10 @@ LLVM_LIBC_HEADERS = [
     libc_header_info("inttypes"),
     libc_header_info("limits"),
     libc_header_info("locale"),
-    libc_header_info("netinet/in"),
+    libc_header_info(
+        "netinet/in",
+        other_srcs = ["include/htons-family.yaml"],
+    ),
     libc_header_info("nl_types"),
     libc_header_info("poll"),
     libc_header_info("pthread"),



More information about the llvm-commits mailing list