[libc-commits] [libc] [libc] Use -nostdlibinc in the full build mode (PR #97461)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Tue Jul 2 12:11:38 PDT 2024


petrhosek wrote:

> I know I pass `-nostdinc` for the GPU, do you know what the exact difference is? If it does the same job we should probably unify that. (The GPU is always in full build mode).

I was about to reach out to and ask if you want to use this flag for the GPU build as well? AFAIK this flag is exactly what you've done in https://github.com/llvm/llvm-project/blob/5f1743cd074cc7d45744d1acc8db379513b4501c/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake#L114-L115 without needing to manually readd the builtin headers.

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


More information about the libc-commits mailing list