Faster linker

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Nov 9 03:41:18 UTC 2018


On Fri, Nov 09, 2018 at 02:47:38AM +0000, bennygui via Digitalmars-d wrote:
[...]
> I looked at the gold linker and it's already a possible configuration
> with Gentoo Linux! I've switched and it now compiles and link in 4
> seconds! Yah!
> 
> But I don't want to switch my whole system to use gold, is there a way
> to configure dub or dmd to use usr/bin/ld.gold instead of /usr/bin/ld
> ?
[...]

You just need to pass the `-L-fuse-ld=gold` flag to your dmd invocation,
or `-fuse-ld=gold` for LDC.  Not 100% sure how to configure this in dub,
though.


T

-- 
Computers aren't intelligent; they only think they are.


More information about the Digitalmars-d mailing list