Choosing a non-default linker for dmd (via dub)

kinke kinke at
Wed Jul 15 14:15:58 UTC 2020

On Wednesday, 15 July 2020 at 11:38:47 UTC, Jacob Carlborg wrote:
> There's an environment variable "CC" that can be used to select 
> which C compiler is used. Is there any equivalence for 
> selecting the linker, "LD" perhaps?

You normally just add -fuse-ld=gold to the C compiler cmdline, 
e.g., via -Xcc=-fuse-ld=gold in the DMD cmdline.

More information about the Digitalmars-d-learn mailing list