Reapply "Use zstd to compress debug info in cc libraries"
This reverts commit d0500f10ef3593aca9b97138b0f5bc1986b631b7.
Test: m
Bug: 305277519
Change-Id: I126395d32cfc0048b6403c831613d9b4a178af4d
diff --git a/cc/config/global.go b/cc/config/global.go
index be81b2e..6668937 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -203,7 +203,9 @@
"-Wl,-mllvm,-regalloc-enable-advisor=release",
}
- deviceGlobalLldflags = append(deviceGlobalLdflags, commonGlobalLldflags...)
+ deviceGlobalLldflags = append(append(deviceGlobalLdflags, commonGlobalLldflags...),
+ "-Wl,--compress-debug-sections=zstd",
+ )
hostGlobalCflags = []string{}