Skip to content

Commit 1d296ec

Browse files
[libc][bazel] fix missing iterator inclusion (#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.
1 parent e61922d commit 1d296ec

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,20 @@ libc_support_library(
161161
],
162162
)
163163

164+
libc_support_library(
165+
name = "__support_cpp_iterator",
166+
hdrs = ["src/__support/CPP/iterator.h"],
167+
deps = [
168+
":__support_cpp_type_traits",
169+
":__support_macros_attributes",
170+
],
171+
)
172+
164173
libc_support_library(
165174
name = "__support_cpp_array",
166175
hdrs = ["src/__support/CPP/array.h"],
167176
deps = [
177+
":__support_cpp_iterator",
168178
":__support_macros_attributes",
169179
],
170180
)

0 commit comments

Comments
 (0)