From 25acde2f56578478695bc366931da61d96a21bd7 Mon Sep 17 00:00:00 2001 From: Eric Rahm Date: Fri, 20 Oct 2023 15:56:30 +0000 Subject: [PATCH] Reapply "Use zstd to compress debug info in rust libraries" This reverts commit 99d682ad4adacea667a29bc7d97e126ab1818e40. Test: m Bug: 305277519 Change-Id: I33c951265229d9f65670760c2255625ef3226707 --- rust/config/global.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/config/global.go b/rust/config/global.go index b94d92fd9..4d31121e5 100644 --- a/rust/config/global.go +++ b/rust/config/global.go @@ -65,6 +65,7 @@ var ( "-lpthread", "-lm", "-lgcc_s", + "-Wl,--compress-debug-sections=zstd", } deviceGlobalRustFlags = []string{ @@ -86,6 +87,7 @@ var ( "-Wl,--use-android-relr-tags", "-Wl,--no-undefined", "-B${cc_config.ClangBin}", + "-Wl,--compress-debug-sections=zstd", } )