From d6fcd404af182be27a7c1efd9333a1f81b9df708 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Fri, 26 Sep 2025 09:47:38 -0700 Subject: [PATCH] Show config messages from install-wild, install-mold (#38979) Follows on from https://github.com/zed-industries/zed/pull/37717#discussion_r2376739687 @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 --- script/install-mold | 10 ++++++++++ script/install-wild | 17 ++++++++++++++++- script/linux | 11 ----------- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/script/install-mold b/script/install-mold index fca8d73f21a10d33ecead5ea2e521b9b1994a5e5..9b90f3e9047e7990892b785864c4ce930d922817 100755 --- a/script/install-mold +++ b/script/install-mold @@ -35,3 +35,13 @@ curl -fsSL --output - "$MOLD_URL" \ # Note this binary depends on the system libatomic.so.1 which is usually # provided as a dependency of gcc so it should be available on most systems. + +cat <