Merge "Remove AfdoAdditionalProfileDirs product variable"
This commit is contained in:
@@ -1272,10 +1272,6 @@ func (c *deviceConfig) NativeCoverageEnabledForPath(path string) bool {
|
|||||||
return coverage
|
return coverage
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *deviceConfig) AfdoAdditionalProfileDirs() []string {
|
|
||||||
return c.config.productVariables.AfdoAdditionalProfileDirs
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *deviceConfig) PgoAdditionalProfileDirs() []string {
|
func (c *deviceConfig) PgoAdditionalProfileDirs() []string {
|
||||||
return c.config.productVariables.PgoAdditionalProfileDirs
|
return c.config.productVariables.PgoAdditionalProfileDirs
|
||||||
}
|
}
|
||||||
|
@@ -336,8 +336,7 @@ type productVariables struct {
|
|||||||
|
|
||||||
NamespacesToExport []string `json:",omitempty"`
|
NamespacesToExport []string `json:",omitempty"`
|
||||||
|
|
||||||
AfdoAdditionalProfileDirs []string `json:",omitempty"`
|
PgoAdditionalProfileDirs []string `json:",omitempty"`
|
||||||
PgoAdditionalProfileDirs []string `json:",omitempty"`
|
|
||||||
|
|
||||||
VndkUseCoreVariant *bool `json:",omitempty"`
|
VndkUseCoreVariant *bool `json:",omitempty"`
|
||||||
VndkSnapshotBuildArtifacts *bool `json:",omitempty"`
|
VndkSnapshotBuildArtifacts *bool `json:",omitempty"`
|
||||||
|
@@ -36,7 +36,7 @@ const afdoCFlagsFormat = "-funique-internal-linkage-names -fprofile-sample-accur
|
|||||||
|
|
||||||
func getAfdoProfileProjects(config android.DeviceConfig) []string {
|
func getAfdoProfileProjects(config android.DeviceConfig) []string {
|
||||||
return config.OnceStringSlice(afdoProfileProjectsConfigKey, func() []string {
|
return config.OnceStringSlice(afdoProfileProjectsConfigKey, func() []string {
|
||||||
return append(globalAfdoProfileProjects, config.AfdoAdditionalProfileDirs()...)
|
return globalAfdoProfileProjects
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user