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