[libc-commits] [libc] fc179af - Fix bazel build issue caused in #166517 (#166734)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 6 01:57:22 PST 2025


Author: Karlo Basioli
Date: 2025-11-06T10:57:18+01:00
New Revision: fc179af5202f8c87905ddea8c0fc1373e3ed2f9a

URL: https://github.com/llvm/llvm-project/commit/fc179af5202f8c87905ddea8c0fc1373e3ed2f9a
DIFF: https://github.com/llvm/llvm-project/commit/fc179af5202f8c87905ddea8c0fc1373e3ed2f9a.diff

LOG: Fix bazel build issue caused in #166517 (#166734)

Added: 
    

Modified: 
    libc/src/__support/CPP/type_traits/is_destructible.h
    utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/CPP/type_traits/is_destructible.h b/libc/src/__support/CPP/type_traits/is_destructible.h
index 7ada2235b4e73..dc5e62b32dce0 100644
--- a/libc/src/__support/CPP/type_traits/is_destructible.h
+++ b/libc/src/__support/CPP/type_traits/is_destructible.h
@@ -15,6 +15,7 @@
 #include "src/__support/CPP/type_traits/remove_all_extents.h"
 #include "src/__support/CPP/type_traits/true_type.h"
 #include "src/__support/CPP/type_traits/type_identity.h"
+#include "src/__support/CPP/utility/declval.h"
 #include "src/__support/macros/attributes.h"
 #include "src/__support/macros/config.h"
 

diff  --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index b65fe64acdea0..b11d1464eb035 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -6513,6 +6513,27 @@ libc_support_library(
     ],
 )
 
+libc_support_library(
+    name = "printf_error_mapper",
+    hdrs = [
+        "src/stdio/printf_core/error_mapper.h",
+    ] + select({
+        "@platforms//os:linux": [
+            "src/stdio/printf_core/linux/error_mapper.h",
+        ],
+        "//conditions:default": [
+            "src/stdio/printf_core/generic/error_mapper.h",
+        ],
+    }),
+    deps = [
+        ":hdr_errno_macros",
+        ":printf_core_structs",
+        ":__support_cpp_type_traits",
+        ":__support_error_or",
+        ":__support_macros_properties_architectures",
+    ]
+)
+
 libc_support_library(
     name = "printf_main",
     hdrs = ["src/stdio/printf_core/printf_main.h"],
@@ -6520,6 +6541,7 @@ libc_support_library(
         ":__support_arg_list",
         ":printf_converter",
         ":printf_core_structs",
+        ":printf_error_mapper",
         ":printf_parser",
         ":printf_writer",
     ],


        


More information about the libc-commits mailing list