Mark Kettenis <[email protected]> writes:

>> From: Greg Steuck <[email protected]>
>> Date: Sun, 13 Feb 2022 22:37:13 -0800
>> 
>> To give a sense of the kind of change required to get the feature I
>> want, see the patch at the end. The change in DriverUtils.cpp is just to
>> show that the same function is hiding in there.
>> 
>> If this looks like a good direction, I can cleanup the code and maybe it
>> could be shared, though I'm not sure where this would belong. Maybe a
>> new tiny library of such wrappers to maintain in our tree?
>> 
>> Thanks
>> Greg
>> 
>> P.S. Naturally, once I install this patched cc, ghci is suddenly very
>> happy.
>
> Something like this was rejected upstream.

We already carry a patch to pick the version for `ld -lfoo` in our tree.
I'm proposing we consistently extend it to one more interface:
cc --print-file-name

> The solution would be to add symlinks like all the other OSes do.  But
> Theo doesn't like that.

That's a very different discussion.

Thanks
Greg

Reply via email to