3 ms·
Using all cores to link is a very welcome change to the linker world. I wish blender folks would try to switch to mold, linking Blender is the singler biggest
by ur-whale 4y ago
Using all cores to link is a very welcome change to the linker world.
I wish blender folks would try to switch to mold, linking Blender is the singler biggest bottleneck to dev speed when writing Blender code.
- Rucadi 4y agoIs 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)
- rui314 4y agoIt looks like you can already use mold to build blender. https://github.com/blender/blender/commit/8b3d798374a2c6b5026791e8ef5ce4fe6494f801 https://github.com/blender/blender/commit/8b3d798374a2c6b502...