clux / muslrust

Docker environment for building musl based static linux rust binaries
MIT License
965 stars 88 forks source link

It would be awesome to use mold to build #117

Open frederikhors opened 1 year ago

frederikhors commented 1 year ago

It would be awesome to use mold to build.

What do you think about?

clux commented 1 year ago

Ah, yes, I think that's a good idea. Not sure how easy it is to integrate in this musl setup and haven't played with it personally, so a PR for an initial setup of this would be helpful!

Would ideally want to test it a bit to ensure that a normal setup works / non-breaking (as they claim), and verify that it is faster to link in a simple webapp case, but if those two things are true, then it would make sense to use here as a default.

frederikhors commented 1 year ago

I think also starting with lld first will be good: https://nnethercote.github.io/perf-book/compile-times.html#linking.