In the latest documentation it is recommended to use sold (a fork of mold for macos).
The problem I face is that I don't manage to build it.
I cloned the repository:
https://github.com/bluewhalesystems/sold.git
but when I follow the other steps:
cd mold/build
git checkout stable
../install-build-deps.sh
I get the following error:
error: pathspec 'stable' did not match any file(s) known to git