Skip to content
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

Fix mold instruction for old systems #10336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OS-of-S
Copy link

@OS-of-S OS-of-S commented Nov 29, 2024

I found that for old GCC mold linker works kinda differently. You can check it inside godot-4.3-stable/platform/linuxbsd/detect.py in Godot sources.

image

I don't know why, but it starts to search a certain link in certain paths: "/usr/libexec", "/usr/local/libexec", "/usr/lib" and "/usr/local/lib", otherwise it gives an error.

I think this could be fixed in the code, but since I'm not very knowledgeable and this feature is already there, I preferred to mention it in the documentation. To be sure, users even don't need to add mold/bin folder into PATH, if they are using GCC. But it's necessary for other compilers: for exemple clang gave me an error "invalid linker name in argument '-fuse-ld=mold'", when I deleted mold/bin from PATH. So this requirement I left in documentation page without unnecessary details.

UPD: Forgot to say that I used Godot 4.3 sources.

@tetrapod00 tetrapod00 added enhancement area:contributing Issues and PRs related to the Contributing/Development section of the documentation labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:contributing Issues and PRs related to the Contributing/Development section of the documentation enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants