-
Notifications
You must be signed in to change notification settings - Fork 15
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
How to use mold without clang #168
Comments
I also tried to use |
No sorry, I never tried that and just followed the instructions on mold's README. |
It seems like
Perhaps this needs to be fixed in |
@teohhanhui is correct To expand a bit on that, gcc does not support path for
There is an option
There is a whole thread on the gcc mailing list https://gcc.gnu.org/pipermail/gcc-patches/2021-June/thread.html#573768 Regardless I agree that's something that should be fixed in the sdk extension but I don't know if it's possible to add a search dir to gcc from there. |
There's also the option of just replacing https://fedoraproject.org/wiki/Changes/Add_LLD_As_Update_Alternatives_Option_For_LD ( I don't know how feasible this option is for Flatpak though. Could there be an SDK extension that overrides files from another SDK extension? |
gcc 12.1 is included in freedesktop-SDK 22.08, so it should be possible to use mold without clang.
I'm not able to figure this out however. I have
append-path: /usr/lib/sdk/rust-stable/bin
in my manifest, so mold is in$PATH
.If I set
RUSTFLAGS: -C link-arg=-fuse-ld=mold
the build fails:The text was updated successfully, but these errors were encountered: