[clang] [clang][driver] Use platform specific calls to get the executable absolute path (PR #68091)

Martin Storsjö via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 3 23:55:59 PDT 2023


mstorsjo wrote:

> I'm convinced that such links were occasionally used before, just that the result was not necessarily an error, I would say that in most cases using the system libraries is functional, and this explains why such cases were not reported till now.

Not necessarily; this depends entirely on what target you're using. If you're cross compiling, if you pick the wrong install dir it probably won't find any usable sysroot at all. The case you've run into, of finding and using the system installed toolchain transparently, is only one of many different outcomes in such a case.


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


More information about the cfe-commits mailing list