From 1fe15d778b22e54ce19647648190816fd62c83a3 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Tue, 20 Aug 2024 09:49:13 -0700 Subject: [PATCH] use clang + mold: experimental --- .cargo/config.toml | 3 +++ shell.nix | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index a0851a2..58fb0c8 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,4 +2,7 @@ rustflags = [ # (Nightly) Make the current crate share its generic instantiations "-Zshare-generics=y", + "-C", + "link-arg=-fuse-ld=mold", ] +linker = "clang" diff --git a/shell.nix b/shell.nix index 096612c..7593580 100644 --- a/shell.nix +++ b/shell.nix @@ -5,6 +5,8 @@ with pkgs; mkShell rec { nativeBuildInputs = [ pkg-config + mold + clang ]; buildInputs = [ udev