From d603765079bf58763ee1490757504c958c1df0a2 Mon Sep 17 00:00:00 2001 From: mo8it Date: Thu, 14 Sep 2023 23:21:38 +0200 Subject: [PATCH] Add Cargo config --- .cargo/config.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..4042b87 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,13 @@ +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] + +[build] +rustflags = [ + "-C", + "target-cpu=native", +] + +[profile.release] +lto = true +codegen-units = 1