ilya-biryukov added a comment.

In D62804#1538155 <https://reviews.llvm.org/D62804#1538155>, @kadircet wrote:

> For example a gcc cross compiling to arm comes with its own system includes 
> and has some mechanisms to discover that implicitly, without requiring any 
> "-I" flags.
>  Hence when used with clangd, we make use of system includes instead of the 
> target's include library. This patch aims to solve that issue, tools like 
> cquery also handles that problem in a similar way.


That's exactly what driver is about. The approach is slightly different, 
though. Instead of executing a binary, one has to mimic the toolchain search 
logic of a particular toolchain by hand.
In addition to includes, it also handles adding the corresponding `-D` flags 
and anything else that the cross-compile toolchain does. Is this toolchain not 
currently supported by the driver? Is adding it so much work that we would 
choose to workaround like this instead?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62804/new/

https://reviews.llvm.org/D62804



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to