Merge "Add "-no-warn-sample-unuse=true" to work around AutoFDO issue" am: d810312751
am: b13d81ba3b
Change-Id: I179a96a122f174e99e77a1eaff0959d6abe5d07e
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user