From 0553ba356eecfe254b7249db22c6d849a6c67655 Mon Sep 17 00:00:00 2001 From: Mitch Phillips Date: Mon, 11 Nov 2019 07:03:42 -0800 Subject: [PATCH] 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 && make , ensure no rebuild. Change-Id: I44edc1a3bb3f57be3e3f093f765241b41928fa4d --- cc/fuzz.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cc/fuzz.go b/cc/fuzz.go index 1f06fb03c..11e641303 100644 --- a/cc/fuzz.go +++ b/cc/fuzz.go @@ -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 {