[clang] [clang][Driver] Obey -fuse-ld=... for -print-prog-name=ld output (PR #66698)

Roland McGrath via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 18 16:15:20 PDT 2023


frobtech wrote:

> Can you comment on what projects need this? Can't we fix the projects instead? And what do they do with the linker path? Why don't they invoke the clang driver to run a link action?

They are legion. It comes from autoconf checks for libtool. It doesn't really matter why they're doing it. They are doing it and it will be years before they can all be changed. If you want to use Clang as the compiler for random open source code, it needs to be compatible with GCC in this regard.

> > ISTM that GetLinkerPath ought to produce the right name regardless and if it doesn't we can fix it to do so.
> 
> It is, but the current test will fail.

I'll be happy to adjust the test so that it matches all the right names, or so that it's restricted to only running on the targets where we know what the names might be. Can you suggest how to do that?

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


More information about the cfe-commits mailing list