[libc-commits] [libc] 63c64fa - [libc] Add LIBC_FULL_BUILD guard to stdint_proxy.h (#191234)
via libc-commits
libc-commits at lists.llvm.org
Thu Apr 9 09:56:39 PDT 2026
Author: Jeff Bailey
Date: 2026-04-09T17:56:35+01:00
New Revision: 63c64fa6cd451557c7554593c1908e34e668aa89
URL: https://github.com/llvm/llvm-project/commit/63c64fa6cd451557c7554593c1908e34e668aa89
DIFF: https://github.com/llvm/llvm-project/commit/63c64fa6cd451557c7554593c1908e34e668aa89.diff
LOG: [libc] Add LIBC_FULL_BUILD guard to stdint_proxy.h (#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.
Added:
Modified:
libc/hdr/stdint_proxy.h
Removed:
################################################################################
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