[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.
This commit is contained in:
Jeff Bailey
2026-04-09 17:56:35 +01:00
committed by GitHub
parent 1a4734789d
commit 63c64fa6cd

View File

@@ -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