about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorAugie Fackler <augie@google.com>2023-10-12 16:11:00 -0400
committerAugie Fackler <augie@google.com>2023-10-13 13:49:36 -0400
commit321572503d75d44287f5de53abfdba70e5047291 (patch)
tree459b4f761a69d0cadb587a4b431507197f3d9cd1 /compiler/rustc_codegen_gcc
parenteb0f3ed59c6508a37c6598bc9762987f053993a7 (diff)
downloadrust-321572503d75d44287f5de53abfdba70e5047291.tar.gz
rust-321572503d75d44287f5de53abfdba70e5047291.zip
linker: also pass debuginfo compression flags
We support compressing debuginfo during codegen, but until this patch we
didn't pass the flag to the linker. Doing so means we'll respect the
requested compression even when building binaries or dylibs. This
produces much smaller binaries: in my testing a debug build of ripgrep
goes from 85M to 32M, and the target/ directory (after a clean build in
both cases) goes from 508M to 329M just by enabling zlib compression of
debuginfo.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions