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:
tried both mold-wrapper and mold-wrapper and it didn't work, now i tried regular mold and it worked, thanks!
Jump to solution
11 Replies
Percy
Percy7mo ago
Project ID: c030dfbe-a1c2-4560-804d-ecbbbcafc67e
PolpOnline
PolpOnlineOP7mo ago
c030dfbe-a1c2-4560-804d-ecbbbcafc67e
Brody
Brody7mo ago
Might be best to do this with a Dockerfile, but tagging in @milo / salvage since he's the rust expert
PolpOnline
PolpOnlineOP7mo ago
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
Brody
Brody7mo ago
I would assume it would be available in PATH so you wouldn't need to use the absolute path to the binary
PolpOnline
PolpOnlineOP7mo ago
it does not install apparently
No description
No description
PolpOnline
PolpOnlineOP7mo ago
he can't find mold wrapper/wrapped (tried both)
PolpOnline
PolpOnlineOP7mo ago
No description
Brody
Brody7mo ago
you have a typo
Solution
PolpOnline
PolpOnline7mo ago
tried both mold-wrapper and mold-wrapper and it didn't work, now i tried regular mold and it worked, thanks!
Brody
Brody7mo ago
well its mold-wrapped but glad you solved it
Want results from more Discord servers?
Add your server