From e915e8e8494a6a8bfb11387259bc67b8dec5fb29 Mon Sep 17 00:00:00 2001 From: Joshua Simmons Date: Sat, 15 Apr 2023 12:29:46 +0200 Subject: [PATCH] build: Enable debug info compression This is not really useful since our binary is so small, and just makes linking slower. But it seemed cool so I wanted to turn it on. --- .cargo/config.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 5243f8a..efd52fe 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,3 +1,8 @@ [target.x86_64-unknown-linux-gnu] linker = "clang" -rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold", "-C", "target-cpu=x86-64-v3", "-C", "force-frame-pointers=yes"] \ No newline at end of file +rustflags = [ + "-C", "link-arg=-fuse-ld=/usr/bin/mold", + "-C", "link-arg=-Wl,--compress-debug-sections=zstd", + "-C", "target-cpu=x86-64-v3", + "-C", "force-frame-pointers=yes" +] \ No newline at end of file -- 2.49.0