[libc-commits] [libc] [libc] Add LIBC_FULL_BUILD guard to stdint_proxy.h (PR #191234)

via libc-commits libc-commits at lists.llvm.org
Thu Apr 9 09:47:21 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Jeff Bailey (kaladron)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/191234.diff


1 Files Affected:

- (modified) libc/hdr/stdint_proxy.h (+4) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/191234


More information about the libc-commits mailing list