#Can I use `mold` as a linker for my Rust project?

13 messages · Page 1 of 1 (latest)

pale rivet
#

This is more of a nixpacks question, but how do i use mold as the Rust linker in my project, currently linking takes ages

GitHub

Mold: A Modern Linker 🦠. Contribute to rui314/mold development by creating an account on GitHub.

gilded ginkgoBOT
#

Project ID: c030dfbe-a1c2-4560-804d-ecbbbcafc67e

pale rivet
#

c030dfbe-a1c2-4560-804d-ecbbbcafc67e

#

Can I use mold as a linker for my Rust project?

velvet ermine
#

Might be best to do this with a Dockerfile, but tagging in @toxic star since he's the rust expert

pale rivet
#

I get that i can install mold just by adding it in packages, but where is the binary installed in the container, in a normal distro i would find it in /usr/bin/mold

velvet ermine
#

I would assume it would be available in PATH so you wouldn't need to use the absolute path to the binary

pale rivet
#

it does not install apparently

#

he can't find mold wrapper/wrapped (tried both)

velvet ermine
#

you have a typo

pale rivet
#

tried both mold-wrapper and mold-wrapper and it didn't work, now i tried regular mold and it worked, thanks!

velvet ermine
#

well its mold-wrapped but glad you solved it