From 63c64fa6cd451557c7554593c1908e34e668aa89 Mon Sep 17 00:00:00 2001 From: Jeff Bailey Date: Thu, 9 Apr 2026 17:56:35 +0100 Subject: [PATCH] [libc] Add LIBC_FULL_BUILD guard to stdint_proxy.h (#191234) In full-build mode with -nostdinc, the system is unavailable. Use the internal stdint-macros.h header instead, falling back to the system header in overlay mode. --- libc/hdr/stdint_proxy.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/hdr/stdint_proxy.h b/libc/hdr/stdint_proxy.h index 8e815679a4e2..d5c600d5a28b 100644 --- a/libc/hdr/stdint_proxy.h +++ b/libc/hdr/stdint_proxy.h @@ -13,6 +13,10 @@ // that is `libc.include.stdint` is added to the dependency of all targets // that use header. +#ifdef LIBC_FULL_BUILD +#include "include/llvm-libc-macros/stdint-macros.h" +#else #include +#endif #endif // LLVM_LIBC_HDR_STDINT_PROXY_H