[llvm] [libc][bazel] fix missing iterator inclusion (PR #85840)

Michael Jones via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 11:28:50 PDT 2024


https://github.com/michaelrj-google created https://github.com/llvm/llvm-project/pull/85840

Patch #85702 added a new iterator header for array to use, but didn't
add it as a dependency in the bazel build. This patch fixes the issue.


>From 58fd21a384b64fcc6988ccf739c5e4c8e4e6f179 Mon Sep 17 00:00:00 2001
From: Michael Jones <michaelrj at google.com>
Date: Tue, 19 Mar 2024 11:27:02 -0700
Subject: [PATCH] [libc][bazel] fix missing iterator inclusion

Patch #85702 added a new iterator header for array to use, but didn't
add it as a dependency in the bazel build. This patch fixes the issue.
---
 utils/bazel/llvm-project-overlay/libc/BUILD.bazel | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 77fb8c16507ba1..4766e168daadbd 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -161,10 +161,20 @@ libc_support_library(
     ],
 )
 
+libc_support_library(
+    name = "__support_cpp_iterator",
+    hdrs = ["src/__support/CPP/iterator.h"],
+    deps = [
+        ":__support_cpp_type_traits",
+        ":__support_macros_attributes",
+    ],
+)
+
 libc_support_library(
     name = "__support_cpp_array",
     hdrs = ["src/__support/CPP/array.h"],
     deps = [
+        ":__support_cpp_iterator",
         ":__support_macros_attributes",
     ],
 )



More information about the llvm-commits mailing list