From 76d4a11135717064ee9b0c44056822824352a54f Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Mon, 11 Mar 2024 21:36:42 +0300 Subject: [PATCH] perf(build): Use mold linker by default for x86_64 --- .cargo/config.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..d29d6c33 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,3 @@ +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=mold"]