diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..64e218a --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,10 @@ +[target.x86_64-unknown-linux-gnu] +linker = "/usr/bin/clang" +rustflags = ["-Clink-arg=-fuse-ld=lld"] + +[target.x86_64-apple-darwin] +rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld"] + +[target.x86_64-pc-windows-msvc] +linker = "rust-lld.exe" +rustflags = ["-Zshare-generics=y"]