Faster linker

kinke kinke at libero.it
Fri Nov 9 12:49:07 UTC 2018


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.


More information about the Digitalmars-d mailing list