From 423e4ce9e31daeaabde4e470169b20a358ec5ada Mon Sep 17 00:00:00 2001 From: AdityaK Date: Fri, 26 May 2023 12:08:05 -0700 Subject: [PATCH] gsimple-template-names Based on: https://chromium-review.googlesource.com/c/chromium/src/+/3988987 ``` Savings are almost 330M on 11G du -s out.diff/target/product/vsoc_arm64/symbols 10751692 out.diff/target/product/vsoc_arm64/symbols du -s out/target/product/vsoc_arm64/symbols 11086508 out/target/product/vsoc_arm64/symbols ``` Change-Id: I49a5c4cadc77cb0d97e680e95c4efa7156a42f13 --- cc/config/global.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cc/config/global.go b/cc/config/global.go index 013b6592b..7f9a6e0ea 100644 --- a/cc/config/global.go +++ b/cc/config/global.go @@ -111,6 +111,9 @@ var ( // Turn off FMA which got enabled by default in clang-r445002 (http://b/218805949) "-ffp-contract=off", + + // Using simple template names reduces the size of debug builds. + "-gsimple-template-names", } commonGlobalConlyflags = []string{}