From 42017c661c131ff85aa70345e100fa486db66bfa Mon Sep 17 00:00:00 2001 From: lntue Date: Thu, 24 Jul 2025 04:39:33 +0000 Subject: [PATCH] [libc] Add missing libc.include.inttypes for targets including . (#150345) --- libc/include/CMakeLists.txt | 1 + libc/src/stdio/printf_core/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt index 18fd3f890a34..fafc1377926c 100644 --- a/libc/include/CMakeLists.txt +++ b/libc/include/CMakeLists.txt @@ -187,6 +187,7 @@ add_header_macro( arpa/inet.h DEPENDS .llvm_libc_common_h + .inttypes ) add_header_macro( diff --git a/libc/src/stdio/printf_core/CMakeLists.txt b/libc/src/stdio/printf_core/CMakeLists.txt index c22f9858f3b1..76eb0a2fdaaa 100644 --- a/libc/src/stdio/printf_core/CMakeLists.txt +++ b/libc/src/stdio/printf_core/CMakeLists.txt @@ -44,6 +44,7 @@ add_header_library( HDRS core_structs.h DEPENDS + libc.include.inttypes libc.src.__support.CPP.string_view libc.src.__support.FPUtil.fp_bits ) @@ -97,6 +98,7 @@ add_header_library( .core_structs .printf_config .writer + libc.include.inttypes libc.src.__support.big_int libc.src.__support.common libc.src.__support.CPP.limits