[clang] [clang] Skip host default include paths for GPU triples (PR #192821)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 29 08:05:26 PDT 2026
yxsamliu wrote:
@jhuber6 Re: implicit search paths Yes. They currently come from the frontend’s generic fallback: GPU triples are not excluded, so `InitHeaderSearch` adds paths such as `/usr/local/include` and `/usr/include` as if the GPU were a host target. The `triple.isGPU()` check suppresses that fallback. The AMDGPU and NVPTX toolchains then add back only Clang’s built-in resource headers, which GPU compilations still need.
https://github.com/llvm/llvm-project/pull/192821
More information about the cfe-commits
mailing list