Sort the inputs to mergedAconfigFilesRule
The aconfig files are collected by visiting the direct deps of the
module. VisitDirectDeps does not guarantee ordered traversal. To prevent
non-determinism in the generated ninja file, sort the inputs.
Test: go build ./android
Change-Id: Ic67fc0859bf18de62b6297ed502d1d495cc3a780
diff --git a/android/aconfig_providers.go b/android/aconfig_providers.go
index be9beb1..1444e7d 100644
--- a/android/aconfig_providers.go
+++ b/android/aconfig_providers.go
@@ -171,7 +171,7 @@
}
func mergeAconfigFiles(ctx ModuleContext, container string, inputs Paths, generateRule bool) Paths {
- inputs = LastUniquePaths(inputs)
+ inputs = SortedUniquePaths(inputs)
if len(inputs) == 1 {
return Paths{inputs[0]}
}