Sort cfi static libs to make them consistent

To make it easier to diff the ninja files with diff_build_graphs.sh
Bug: b/69133815
Test: m -j

Change-Id: Ic08094f7dc3adb773ebb64a7d34125fc24641bf3
This commit is contained in:
Jeff Gaston
2017-11-28 16:37:53 -08:00
parent b4972e3d96
commit 7276539d6a

View File

@@ -17,6 +17,7 @@ package cc
import (
"fmt"
"io"
"sort"
"strings"
"sync"
@@ -649,5 +650,6 @@ func cfiStaticLibs(config android.Config) *[]string {
func cfiMakeVarsProvider(ctx android.MakeVarsContext) {
cfiStaticLibs := cfiStaticLibs(ctx.Config())
sort.Strings(*cfiStaticLibs)
ctx.Strict("SOONG_CFI_STATIC_LIBRARIES", strings.Join(*cfiStaticLibs, " "))
}