diff --git a/cc/afdo.go b/cc/afdo.go index d7cce77dd..c88821327 100644 --- a/cc/afdo.go +++ b/cc/afdo.go @@ -32,7 +32,7 @@ var ( var afdoProfileProjectsConfigKey = android.NewOnceKey("AfdoProfileProjects") -const afdoCFlagsFormat = "-fprofile-sample-accurate -fprofile-sample-use=%s" +const afdoCFlagsFormat = "-funique-internal-linkage-names -fprofile-sample-accurate -fprofile-sample-use=%s" func getAfdoProfileProjects(config android.DeviceConfig) []string { return config.OnceStringSlice(afdoProfileProjectsConfigKey, func() []string {