4 ms·
Is it not a drop-in replacement?
by Rucadi 4y ago
Is it not a drop-in replacement?
- rui314 4y agoIt's a drop-in replacement, but you still have to tell the build system to have it use an alternative linker instead of the default one, unless you replace /usr/bin/ld with mold entirely.
- r-r-r 4y agoRui, thank you! mold is a life saver! My compile debug cycle improved a lot since I started using it! (I tend to prefix PATH with the folder I build it into for the specific project I need it for)
- r-r-r 4y agoIt got to 1.0 recently and still is in dev. But off the top - No lto support, missing some flags that we use when building drivers, valgrind (cachegrind etc) fail to load symbols, some linker stuff is case senstive etc. Can also add it to PATH, instead of hardcoding it like op did here. But it's well worth it in some projects - In my case it shaved over a minute from incremental builds, resulting in sub 10 second builds! (Alsp note you can cache indexes in gdb by default)