Faster linker

Andre Pany andre at s-e-a-p.de
Fri Nov 9 11:24:38 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!

For dmd there is the dmd.conf file which has the DFLAGS attribute.
I am not an expert in this area but you may could set here the
default linker.

Kind regards
André


More information about the Digitalmars-d mailing list