For reference, I have the following configuration in ~/.config/nim/config.nims
    
    
    if findExe("mold") != "" or findExe("ld.mold") != "":
      switch("passL", "-fuse-ld=mold")
    
    
    Run

On my oddball little project, the build time goes from 30 seconds to about half 
that in 15 seconds. Nim is a much faster build than that one, even with the 
default linker, so it may not make much difference, but it still saves waste.

Reply via email to