Merge "Revert "afdo: Remove -fprofile-sample-accurate flag"" into main

This commit is contained in:
Yi Kong 2023-11-17 22:08:14 +00:00 committed by Gerrit Code Review
commit ef2e76edb4

View file

@ -35,7 +35,7 @@ var (
var afdoProfileProjectsConfigKey = android.NewOnceKey("AfdoProfileProjects")
// This flag needs to be in both CFlags and LdFlags to ensure correct symbol ordering
const afdoFlagsFormat = "-fprofile-sample-use=%s"
const afdoFlagsFormat = "-fprofile-sample-use=%s -fprofile-sample-accurate"
func recordMissingAfdoProfileFile(ctx android.BaseModuleContext, missing string) {
getNamedMapForConfig(ctx.Config(), modulesMissingProfileFileKey).Store(missing, true)