Reverting the mold linker
Allen Winter
winter at kde.org
Mon Oct 5 17:00:59 BST 2026
On Monday, October 5, 2026 11:24:26 AM Eastern Daylight Time Laurent Montel wrote:
Hi Laurent
> If it's install on your computer you can use it.
> It doesn't force you.
to avoid mold you need to:
- uninstall mold or move it out out $PATH
- explicitly pass -DUSE_MOLD_LINKER=OFF
- explicitly pass -DCMAKE_LINKER_TYPE=LLD (or another cmake supported linker)
some linux distros allow you to set the default linker using `alternatives`.
maybe developers can try `alternatives --config ld` instead?
otherwise pass -DCMAKE_LINKER_TYPE=MOLD
also maybe we should ask the sysadmins to have the CI set CMAKE_LINKER_TYPE=MOLD for us
I've been setting CMAKE_LINKER_TYPE=LLD for a long time since I use clang++ to compile
but maybe I will try mold.
Regards,
Allen
> Le 05.10.2026 17:14, Nicolas Fella a écrit :
> > Hi,
> >
> > most PIM repos now have code that uses the Mold linker by default. This
> > is very bad. The buildsystem should not mess with the linker that way,
> > and it makes it inconsistent with all other KDE code.
> >
> > If somebody actually wants to use Mold they can trivially enable it in
> > their own build configuration.
> >
> > I'm am going to revert these changes now.
> >
> > Cheers
> >
> > Nico
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 870 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20261005/6572244f/attachment.sig>
More information about the kde-pim
mailing list