Faster linker

H. S. Teoh hsteoh at quickfur.ath.cx
Sat Nov 10 00:01:26 UTC 2018


On Fri, Nov 09, 2018 at 12:49:07PM +0000, kinke via Digitalmars-d wrote:
> On Friday, 9 November 2018 at 03:41:18 UTC, H. S. Teoh wrote:
> > You just need to pass the `-L-fuse-ld=gold` flag to your dmd
> > invocation, or `-fuse-ld=gold` for LDC.
> 
> As Joakim said, the linker switch for LDC is `-linker=gold`, not
> `-fuse-ld` (that's the gcc/clang switch). If you guys read the release
> notes, you'd have seen that LDC v1.13 newly defaults to the gold
> linker on Linux (due to various issues with older bfd versions), which
> is apparently the sole reason the OP saw much better performance with
> LDC.

Ah, I guess I got confused because when cross-compiling for Android,
I'm actually using the NDK clang backend for linking, even though the D
part is compiled by LDC.  Apologies.


T

-- 
I'm still trying to find a pun for "punishment"...


More information about the Digitalmars-d mailing list