Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions engine_details/development/compiling/compiling_for_linuxbsd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -547,20 +547,27 @@ Using mold for faster development
For even faster linking compared to LLD, you can use `mold <https://github.com/rui314/mold>`__.
mold can be used with either GCC or Clang.

As of January 2023, mold is not readily available in Linux distribution
repositories, so you will have to install its binaries manually.
.. tabs::
.. tab:: Debian/Ubuntu

- Download mold binaries from its `releases page <https://github.com/rui314/mold/releases/latest>`__.
- Extract the ``.tar.gz`` file, then move the extracted folder to a location such as ``.local/share/mold``.
- Add ``$HOME/.local/share/mold/bin`` to your user's ``PATH`` environment variable.
For example, you can add the following line at the end of your ``$HOME/.bash_profile`` file:
::

::
sudo apt-get update
sudo apt-get install -y mold

.. tab:: Fedora

::

sudo dnf install -y mold

.. tab:: Arch Linux

::

PATH="$HOME/.local/share/mold/bin:$PATH"
pacman -Sy --noconfirm --needed mold

- Open a new terminal (or run ``source "$HOME/.bash_profile"``),
then use the following SCons command when compiling Godot:
Once mold is installed, use the following SCons command when compiling Godot:
Comment on lines +550 to +570
Copy link
Contributor Author

@wjt wjt Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added Arch Linux to this section.

I have to say that I am not sure there is really any value in listing out the install instruction for every distro - if you have reached this point in the document you presumably know how to install the mold package with your distro's package manager. Maybe we can just say instead:

As of January 2026, a ``mold`` package is available in many distributions'
package managers. Once mold is installed, use the following SCons command when
compiling Godot:


::

Expand Down
Loading