From 3c9a79e22f98048d28e8ac4ca3657e5aa2295cfe Mon Sep 17 00:00:00 2001 From: David Date: Fri, 14 Nov 2025 18:07:00 +0100 Subject: [PATCH] makes wild the default linker on linux It is significantly faster and no production ready. Still keeping it off in CI as its a relatively new linker. We install it by default on linux now. --- .cargo/config.toml | 8 ++++++++ script/install-wild | 11 ----------- script/linux | 12 +++++++----- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 9b2e6f51c96e3ae98a54bbb11524210911d0e262..accc3d3beff34f1425097f0a7741dc92542e7d2e 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -16,5 +16,13 @@ rustflags = [ "target-feature=+crt-static", # This fixes the linking issue when compiling livekit on Windows ] +[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"] + [env] MACOSX_DEPLOYMENT_TARGET = "10.15.7" diff --git a/script/install-wild b/script/install-wild index 3f8a5a2b3ff613285b3f02c0069e5c5829ba3744..fb5cd665b2d4e16a25507ca8b96aa31fd425ba98 100755 --- a/script/install-wild +++ b/script/install-wild @@ -31,14 +31,3 @@ curl -fsSL --output - "$WILD_URL" \ cat < /dev/null 2>&1 || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - cat <