Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Show config messages from install-wild, install-mold (#38979)
Martin Poold6fcd404af18
diff --git a/script/install-mold b/script/install-moldindex fca8d73f21a..9b90f3e9047 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 <<EOF+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"]+EOFdiff --git a/script/install-wild b/script/install-wildindex 5ce3de36036..3f8a5a2b3ff 100755--- a/script/install-wild+++ b/script/install-wild@@ -22,8 +22,23 @@ ARCH="$(uname -m)"WILD_REPO="${WILD_REPO:-https://github.com/davidlattimore/wild}"WILD_PACKAGE="wild-linker-${WILD_VERSION}-${ARCH}-unknown-linux-gnu"WILD_URL="${WILD_URL:-$WILD_REPO}/releases/download/$WILD_VERSION/${WILD_PACKAGE}.tar.gz"+DEST_DIR=/usr/local/binecho "Downloading from $WILD_URL"curl -fsSL --output - "$WILD_URL" \- | $SUDO tar -C /usr/local/bin --strip-components=1 --no-overwrite-dir -xzf - \+ | $SUDO tar -C ${DEST_DIR} --strip-components=1 --no-overwrite-dir -xzf - \"${WILD_PACKAGE}/wild"++cat <<EOF+Wild is installed to ${DEST_DIR}/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"]+EOFdiff --git a/script/linux b/script/linuxindex 3d619858d1b..c5c4ea9ab38 100755--- a/script/linux+++ b/script/linux@@ -14,17 +14,6 @@ function finalize {cat <<EOFNote: It's recommended to install and configure Wild or Mold for faster builds.Run script/install-wild or script/install-mold.- Then add these lines to 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"]--Finished installing Linux dependencies with script/linuxEOF