[PATCH] D146973: [Clang] Implicitly include LLVM libc headers for the GPU
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 3 10:06:14 PDT 2023
jhuber6 added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:1196-1197
+ // If we are compiling for a GPU target we want to override the system headers
+ // with ones created by the 'libc' project if present.
+ if (!Args.hasArg(options::OPT_nostdinc) &&
----------------
tra wrote:
> Please add a TODO with some details outlining what it's supposed to do, the issues we've discussed, and that this is intended to be a temporary solution (famous last words, I know).
>
>
I'm not sure if we should consider this temporary, we simply need to ensure that the headers in this directory are compatible with the host environment somehow.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146973/new/
https://reviews.llvm.org/D146973
More information about the cfe-commits
mailing list