From 30269f7bd223e5de9e7cd49b251e28159d586d69 Mon Sep 17 00:00:00 2001 From: Janis Date: Thu, 9 Jan 2025 21:51:19 +0100 Subject: [PATCH] mold + debug-release profile --- .cargo/config.toml | 3 +++ Cargo.toml | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..0c38d57 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,3 @@ +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] diff --git a/Cargo.toml b/Cargo.toml index ae7da52..093a5e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,11 @@ members = [ "crates/game" ] +[profile.debug-release] +inherits = "release" +opt-level = 2 +debug = true + [workspace.dependencies] anyhow = "1.0.89" ash = "0.38.0"