Skip to content

Show config messages from install-wild, install-mold#38979

Merged
yara-blue merged 1 commit into
zed-industries:mainfrom
sourcefrog:wild
Sep 26, 2025
Merged

Show config messages from install-wild, install-mold#38979
yara-blue merged 1 commit into
zed-industries:mainfrom
sourcefrog:wild

Conversation

@sourcefrog
Copy link
Copy Markdown
Contributor

Follows on from #37717 (comment)

@dvdsk suggested this but I didn't get to it in the previous PR.

Tested

; sudo rm /usr/local/bin/wild
; ./script/install-wild
Downloading from https://github.com/davidlattimore/wild/releases/download/0.6.0/wild-linker-0.6.0-x86_64-unknown-linux-gnu.tar.gz
Wild is installed to /usr/local/bin/wild

To make it your default, add or merge these lines into your ~/.cargo/config.toml:

[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=--ld-path=wild"]

[target.aarch64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=--ld-path=wild"]

; sudo rm /usr/local/bin/mold
; ./script/install-mold 2.34.0
Downloading from https://github.com/rui314/mold/releases/download/v2.34.0/mold-2.34.0-x86_64-linux.tar.gz
Mold is installed to /usr/local/bin/mold

To make it your default, add or merge these lines into your ~/.cargo/config.toml:

[target.'cfg(target_os = "linux")']
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=mold"]

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Sep 26, 2025
@github-actions github-actions Bot added the community champion Issues filed by our amazing community champions! 🫶 label Sep 26, 2025
@yara-blue
Copy link
Copy Markdown
Member

@dvdsk suggested this but I didn't get to it in the previous PR.

Sorry I got greedy and wanted those shorter compile times :)

@yara-blue
Copy link
Copy Markdown
Member

thanks for adding the config message to mold too!

@yara-blue yara-blue enabled auto-merge (squash) September 26, 2025 16:30
@yara-blue yara-blue merged commit d6fcd40 into zed-industries:main Sep 26, 2025
24 checks passed
@sourcefrog
Copy link
Copy Markdown
Contributor Author

If you have a chat channel for developers, or Linux developers, maybe you can remind them all to apply this change, because by default the removal from in-tree config will have caused them to fall back to GNU ld.

@esthertrapadoux
Copy link
Copy Markdown
Contributor

@dvdsk do you mind posting this in the Discord linux channel? I can but not sure I'd know what to write. 😞

@yara-blue
Copy link
Copy Markdown
Member

@dvdsk do you mind posting this in the Discord linux channel? I can but not sure I'd know what to write. 😞

Oh damn, I forgot about all the open source contributors 😅. I'll copy what I put in slack.

@sourcefrog sourcefrog deleted the wild branch September 30, 2025 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement community champion Issues filed by our amazing community champions! 🫶

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants