[cfe-dev] Linker selection

Chandler Carruth chandlerc at google.com
Fri Dec 14 05:24:55 PST 2012


On Fri, Dec 14, 2012 at 5:03 AM, Jacob Carlborg <doob at me.com> wrote:

> On 2012-12-14 12:57, Chandler Carruth wrote:
>
>  Note that my point was only that we shouldn't need a custom set of
>> command line flags for mclinker, and we shouldn't need to switch command
>> line flags when switching linkers while staying on the same target
>> platform. Thus, we might consider simple solutions that only address the
>> problem of switching the link binary used rather than a more complex
>> solution which passes flags in a new dialect.
>>
>
> Each linker could have a compatibility layer which translates the command
> line flags. This compatibility layer could just be a shell script (or
> similar) supplied by the linker, Clang or third party.


I think the linker should supply it.

I don't think Clang should have to cope with compatibility for every linker
-- coping with compatibility for every platform is hard enough.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121214/e20cdc86/attachment.html>


More information about the cfe-dev mailing list