-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Revise mold installation steps #11587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Calinou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can also add Arch Linux here (pacman -Sy --noconfirm --needed mold).
Previously the documentation stated that mold is not widely packaged as of 2023. It is now 2026 and it is more widely packaged. Update this section.
| .. 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: |
There was a problem hiding this comment.
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:|
I'm ok with distro specific instructions, you never know if it's someone's first time trying to compile something, or download software via command line, especially with how common flathub is these days. |
Previously the documentation stated that mold is not widely packaged as of 2023. It is now 2026 and it is more widely packaged. Update this section.