From 0901f946bc375786a3abfbe78199305d80240945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 15 Nov 2024 13:37:56 +0100 Subject: [PATCH] cargo: Use mold --- cargo/config.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cargo/config.toml b/cargo/config.toml index aecf592..8b59d1d 100644 --- a/cargo/config.toml +++ b/cargo/config.toml @@ -1,2 +1,6 @@ [build] rustc-wrapper = "sccache" + +[target.x86_64-unknown-linux-gnu] +linker = "/usr/bin/clang" +rustflags = ["-C", "link-arg=--ld-path=/usr/bin/mold"]