Move "-fdebug-info-for-profiling" flag to device binaries only

We do not profile host binaries. Moving to device binaries only helps
saving some disk space as well as shortening build time.

Test: presubmit
Change-Id: I09afb106d0e2ee250b3bc75d9dfd9cb8b6552c97
This commit is contained in:
Yi Kong
2021-12-07 13:51:38 +08:00
parent b0d167cb43
commit 196b926ac2

View File

@@ -46,7 +46,6 @@ var (
"-O2",
"-g",
"-fdebug-info-for-profiling",
"-fno-strict-aliasing",
@@ -125,6 +124,9 @@ var (
"-Werror=sequence-point",
"-Werror=format-security",
"-nostdlibinc",
// Emit additional debug info for AutoFDO
"-fdebug-info-for-profiling",
}
deviceGlobalCppflags = []string{