Merge "Add "-no-warn-sample-unuse=true" to work around AutoFDO issue" am: d810312751 am: b13d81ba3b

Change-Id: I179a96a122f174e99e77a1eaff0959d6abe5d07e
This commit is contained in:
Automerger Merge Worker
2020-01-17 22:18:06 +00:00

View File

@@ -177,6 +177,10 @@ func (props *PgoProperties) addProfileUseFlags(ctx ModuleContext, flags Flags) F
// if profileFile gets updated
flags.CFlagsDeps = append(flags.CFlagsDeps, profileFilePath)
flags.LdFlagsDeps = append(flags.LdFlagsDeps, profileFilePath)
if props.isSampling() {
flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,-mllvm,-no-warn-sample-unused=true")
}
}
return flags
}