Skip to content

Commit fc179af

Browse files
authored
Fix bazel build issue caused in #166517 (#166734)
1 parent a24eac8 commit fc179af

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

libc/src/__support/CPP/type_traits/is_destructible.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "src/__support/CPP/type_traits/remove_all_extents.h"
1616
#include "src/__support/CPP/type_traits/true_type.h"
1717
#include "src/__support/CPP/type_traits/type_identity.h"
18+
#include "src/__support/CPP/utility/declval.h"
1819
#include "src/__support/macros/attributes.h"
1920
#include "src/__support/macros/config.h"
2021

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6513,13 +6513,35 @@ libc_support_library(
65136513
],
65146514
)
65156515

6516+
libc_support_library(
6517+
name = "printf_error_mapper",
6518+
hdrs = [
6519+
"src/stdio/printf_core/error_mapper.h",
6520+
] + select({
6521+
"@platforms//os:linux": [
6522+
"src/stdio/printf_core/linux/error_mapper.h",
6523+
],
6524+
"//conditions:default": [
6525+
"src/stdio/printf_core/generic/error_mapper.h",
6526+
],
6527+
}),
6528+
deps = [
6529+
":hdr_errno_macros",
6530+
":printf_core_structs",
6531+
":__support_cpp_type_traits",
6532+
":__support_error_or",
6533+
":__support_macros_properties_architectures",
6534+
]
6535+
)
6536+
65166537
libc_support_library(
65176538
name = "printf_main",
65186539
hdrs = ["src/stdio/printf_core/printf_main.h"],
65196540
deps = [
65206541
":__support_arg_list",
65216542
":printf_converter",
65226543
":printf_core_structs",
6544+
":printf_error_mapper",
65236545
":printf_parser",
65246546
":printf_writer",
65256547
],

0 commit comments

Comments
 (0)