Can I use `mold` as a linker for my Rust project?
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
GitHub - rui314/mold: Mold: A Modern Linker 🦠
Mold: A Modern Linker 🦠. Contribute to rui314/mold development by creating an account on GitHub.
Solution:Jump to solution
tried both mold-wrapper and mold-wrapper and it didn't work, now i tried regular mold and it worked, thanks!
11 Replies
Project ID:
c030dfbe-a1c2-4560-804d-ecbbbcafc67e
c030dfbe-a1c2-4560-804d-ecbbbcafc67e
Might be best to do this with a Dockerfile, but tagging in @milo / salvage since he's the rust expert
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
I would assume it would be available in
PATH
so you wouldn't need to use the absolute path to the binaryit does not install apparently
he can't find mold wrapper/wrapped (tried both)
you have a typo
Solution
tried both mold-wrapper and mold-wrapper and it didn't work, now i tried regular mold and it worked, thanks!
well its
mold-wrapped
but glad you solved it