Skip to content

docs: add alternative Clang invocation#1334

Merged
mati865 merged 1 commit into
wild-linker:mainfrom
mati865:push-sropumszuwtr
Nov 25, 2025
Merged

docs: add alternative Clang invocation#1334
mati865 merged 1 commit into
wild-linker:mainfrom
mati865:push-sropumszuwtr

Conversation

@mati865

@mati865 mati865 commented Nov 24, 2025

Copy link
Copy Markdown
Member

Clang accepts -fuse-ld=wild if ld.wild is present in PATH.

@mati865

mati865 commented Nov 24, 2025

Copy link
Copy Markdown
Member Author

Maybe we should also put ld.wild symlink in prebuilt binaries and somehow recommend this symlink to distro packagers?

@davidlattimore davidlattimore left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It'd seem a shame to use double the disk space by having two identical binaries. But maybe we can include a tiny extra binary that invokes the other from the same directory. Recommending that distros include a symlink seems sensible.

@mati865

mati865 commented Nov 24, 2025

Copy link
Copy Markdown
Member Author

You can include symlink in the tarball, IIRC hard-links as well, so there would be no additional disk usage.
Obviously, it has to be created manually by calling ln in release job and won't work with cargo install.

Recommending that distros include a symlink seems sensible.

I don't think we've got packager recommendations anywhere. Where should it go?

@davidlattimore

Copy link
Copy Markdown
Member

You can include symlink in the tarball, IIRC hard-links as well, so there would be no additional disk usage. Obviously, it has to be created manually by calling ln in release job and won't work with cargo install.

That's true, I was mostly thinking about cargo install. I wonder if cargo binstall would pick up the symlink from the tarball.

Recommending that distros include a symlink seems sensible.

I don't think we've got packager recommendations anywhere. Where should it go?

I suspect we should perhaps have a new markdown file, since it's a pretty different audience. Perhaps PACKAGING.md?

@mati865

mati865 commented Nov 25, 2025

Copy link
Copy Markdown
Member Author

From the docs it seems cargo binstall would not install the symlink:

Then it will concat the dir with "{ bin }{ binary-ext }" and use that as the final bin-dir.

https://github.com/cargo-bins/cargo-binstall/blob/main/SUPPORT.md#defaults

I suspect we should perhaps have a new markdown file, since it's a pretty different audience. Perhaps PACKAGING.md?

Sure, should I add it here or as a separate PR?

@davidlattimore

Copy link
Copy Markdown
Member

Probably a separate PR. I'd say that it deserves its own entry in the changelog

@mati865 mati865 merged commit 1b15e1d into wild-linker:main Nov 25, 2025
20 checks passed
@mati865 mati865 deleted the push-sropumszuwtr branch November 25, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants