From e0994eb1084616911ebe70987e06d4b71ec7bb39 Mon Sep 17 00:00:00 2001 From: Sebastian Jeltsch Date: Thu, 6 Feb 2025 12:17:30 +0100 Subject: [PATCH] Use mold linker to speed up build times. --- .cargo/config.toml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..9b553e64 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,8 @@ +[target.x86_64-unknown-linux-gnu] +rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"] + +# [unstable] +# codegen-backend = true +# +# [profile.dev] +# codegen-backend = "cranelift"