From 4aff939cb1e8a875ee1cbe6b2e44d3241294e183 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 15 Dec 2024 22:12:59 +0100 Subject: [PATCH] chore(build): add cargo config for mold linker --- .cargo/config.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 54d6162..5903a40 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,10 @@ [alias] xtask = "run --package xtask --quiet --" + +[profile.dev] +debug = 0 +strip = "debuginfo" + +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=mold", "-C", "target-cpu=native"]