MythreyaK wrote:

> can you explain why a little further? 

I was following the musl include search as an example when I was testing this 
change. My mental model was that the search order is triple-specific C++ 
headers, common C++ headers, triple-specific C headers, and the resource dir. 
Please correct me if I'm wrong.

Searching the triple-specific directories before searching the common clang 
resource dir seemed to line up with how musl worked. 
 
```shell
# C++ headers first
<sysroot>/usr/include/<triple>/c++/v1
<sysroot>/usr/include/c++/v1
# C headers
<sysroot>/usr/include/<triple>
# common headers 
<sysroot>/usr/include         # missing from this patch
# common resource headers
<sysroot>/usr/lib/clang/<ver>/include
```

https://github.com/llvm/llvm-project/pull/183453
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to