use clang + mold: experimental

This commit is contained in:
Zynh Ludwig 2024-08-20 09:49:13 -07:00
parent 282964a0f0
commit 1fe15d778b
2 changed files with 5 additions and 0 deletions

View file

@ -2,4 +2,7 @@
rustflags = [ rustflags = [
# (Nightly) Make the current crate share its generic instantiations # (Nightly) Make the current crate share its generic instantiations
"-Zshare-generics=y", "-Zshare-generics=y",
"-C",
"link-arg=-fuse-ld=mold",
] ]
linker = "clang"

View file

@ -5,6 +5,8 @@ with pkgs;
mkShell rec { mkShell rec {
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
mold
clang
]; ];
buildInputs = [ buildInputs = [
udev udev