]> git.nega.tv - josh/narcissus/commitdiff
build: Enable debug info compression
authorJoshua Simmons <josh@nega.tv>
Sat, 15 Apr 2023 10:29:46 +0000 (12:29 +0200)
committerJoshua Simmons <josh@nega.tv>
Sat, 15 Apr 2023 10:29:46 +0000 (12:29 +0200)
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

index 5243f8aa540ba0748fa9e01b31ee6768254b118e..efd52feaf453fee3db72e2c93b3339e3072a0a7c 100644 (file)
@@ -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