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:
Mitch Phillips
2019-11-11 07:03:42 -08:00
parent 31d57588c9
commit 0553ba356e

View File

@@ -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 {