Sort fuzz target dependencies to avoid rebuilds.
Some fuzz target dependencies are generated at Soong-time in a nondeterministic fashion. When these are interpreted by Make, they may cause rebuilds due to being in a different order. Ensure that the dependencies are always sorted, which should avoid triggering unnecessary rebuilds. Bug: 144250431 Test: make <module> && make <module>, ensure no rebuild. Change-Id: I44edc1a3bb3f57be3e3f093f765241b41928fa4d
This commit is contained in:
@@ -232,6 +232,8 @@ func (fuzz *fuzzBinary) install(ctx ModuleContext, file android.Path) {
|
||||
sharedLibraryInstallLocation(
|
||||
lib, ctx.Host(), ctx.Arch().ArchType.String()))
|
||||
}
|
||||
|
||||
sort.Strings(fuzz.installedSharedDeps)
|
||||
}
|
||||
|
||||
func NewFuzz(hod android.HostOrDeviceSupported) *Module {
|
||||
|
Reference in New Issue
Block a user