Skip to content

Commit

Permalink
cc/config: do not generate additional debug info for AFDO
Browse files Browse the repository at this point in the history
We do not generate our own AFDO profiles for many reasons, not limited
to but including:
 - ETM-capable device access
 - Custom rolled fixes in upstream profiles

As such, we do not need to generate additional debug info. Removing this
decreases output binary size and saves on compile time.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
  • Loading branch information
RealJohnGalt authored and neobuddy89 committed Sep 8, 2024
1 parent fd383fb commit cda2559
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cc/config/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ var (
"-Werror=format-security",
"-nostdlibinc",

// Emit additional debug info for AutoFDO
"-fdebug-info-for-profiling",
}

commonGlobalLldflags = []string{
Expand Down

0 comments on commit cda2559

Please sign in to comment.