Faster linker
Joakim
dlang at joakim.fea.st
Fri Nov 9 03:47:09 UTC 2018
On Friday, 9 November 2018 at 02:47:38 UTC, bennygui wrote:
> On Friday, 9 November 2018 at 02:33:42 UTC, Steven
> Schveighoffer wrote:
>> [...]
>
> Yep, that's it.
>
>>[...]
>
> I've tried commenting out all "render" call so I have no diet
> templates and I save 1 second of total time (10.5 to 9.6) and
> it's still the linker that takes all the time.
>
> 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 ?
>
> Thanks!
Yes, LDC has the -linker=gold flag, that you can use to pass a
different linker to your C compiler. Try it with lld, it's the
fastest of all the linkers.
More information about the Digitalmars-d
mailing list