[libc-commits] [libc] [libc] Add LIBC_FULL_BUILD guard to stdint_proxy.h (PR #191234)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Thu Apr 9 09:12:21 PDT 2026
https://github.com/kaladron created https://github.com/llvm/llvm-project/pull/191234
In full-build mode with -nostdinc, the system <stdint.h> is unavailable. Use the internal stdint-macros.h header instead, falling back to the system header in overlay mode.
>From cbe6afb2110e1f11e79f4de57785ab1a80bdc191 Mon Sep 17 00:00:00 2001
From: Jeff Bailey <jbailey at raspberryginger.com>
Date: Thu, 9 Apr 2026 16:39:26 +0100
Subject: [PATCH] [libc] Add LIBC_FULL_BUILD guard to stdint_proxy.h
In full-build mode with -nostdinc, the system <stdint.h> 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 8e815679a4e24..d5c600d5a28bf 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 <stdint.h> header.
+#ifdef LIBC_FULL_BUILD
+#include "include/llvm-libc-macros/stdint-macros.h"
+#else
#include <stdint.h>
+#endif
#endif // LLVM_LIBC_HDR_STDINT_PROXY_H
More information about the libc-commits
mailing list