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

2 years ago

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

0 Replies

polponline
HOBBYOP

2 years ago

c030dfbe-a1c2-4560-804d-ecbbbcafc67e


polponline
HOBBYOP

2 years ago

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


brody
EMPLOYEE

2 years ago

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


polponline
HOBBYOP

2 years 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
EMPLOYEE

2 years ago

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


polponline
HOBBYOP

2 years ago

it does not install apparently

1239575734398353400
1239575734704672800


polponline
HOBBYOP

2 years ago

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


polponline
HOBBYOP

2 years ago

1239576053853192200


brody
EMPLOYEE

2 years ago

you have a typo


polponline
HOBBYOP

2 years ago

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


brody
EMPLOYEE

2 years ago

well its mold-wrapped but glad you solved it


Loading...