Faster linker

Joakim dlang at joakim.fea.st
Sun Nov 11 14:57:40 UTC 2018


On Sunday, 11 November 2018 at 13:05:22 UTC, Atila Neves wrote:
> On Friday, 9 November 2018 at 15:30:24 UTC, Joakim wrote:
>> [...]
>
> Older, yes. Old, no (I'm on Arch, nothing is old). I was also 
> stunned by how fast it ran. Then I was more stunned by how 
> crashy the resulting binaries were.
>
>> [...]
>
> Huh, I could've sworn I tried it with 1.12.0 and it didn't 
> work, but I tried again and it recognises the flag. My bad.
>
>> [...]
>
> I sympathise with the difficulty, but as I user I don't care - 
> it doesn't work.
>
>> [...]
>
> Or I could symlink /usr/bin/ld to /usr/bin/ld.lld and not have 
> to worry about any of that. Except for letting me switch linker 
> per project, `-link-internally` is useless to me.

Then we come full circle and you can simply supply the 
-linker=lld flag to ldc whenever you compile D code, and switch 
up that flag if you have any problems.

> There's also the `--no-warn-search-mismatch` problem.

Yes, its mentioned in the ldc issue I linked you above, an 
incompatibility between lld and bfd/gold right now.


More information about the Digitalmars-d mailing list