Merge "Add "-no-warn-sample-unuse=true" to work around AutoFDO issue"

am: d810312751

Change-Id: I4889db3de3dc62d5261d19bc627c1aae1ec30318
This commit is contained in:
Yi Kong
2020-01-17 13:32:20 -08:00
committed by android-build-merger

View File

@@ -177,6 +177,10 @@ func (props *PgoProperties) addProfileUseFlags(ctx ModuleContext, flags Flags) F
// if profileFile gets updated // if profileFile gets updated
flags.CFlagsDeps = append(flags.CFlagsDeps, profileFilePath) flags.CFlagsDeps = append(flags.CFlagsDeps, profileFilePath)
flags.LdFlagsDeps = append(flags.LdFlagsDeps, 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 return flags
} }