Fix dependency on python hash seed
Sort the list of targets before writing them to the output, which fixes the only place where output ordering depended on the python hash seed. Also remove the fixed python hash seed from the script. Test: android_tools/generate_android_bp.sh && git diff Test: mma Change-Id: Icfadfaaebf438d00bfef13c231fc09afda454916
This commit is contained in:
40456
Android.bp
40456
Android.bp
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,7 @@ fi
|
|||||||
|
|
||||||
DIR=$(dirname $0)
|
DIR=$(dirname $0)
|
||||||
|
|
||||||
PYTHONHASHSEED=31 "${DIR}"/generate_bp.py "$DIR" >"${DIR}/../Android.bp"
|
"${DIR}"/generate_bp.py "$DIR" >"${DIR}/../Android.bp"
|
||||||
|
|
||||||
bpfmt -w "${DIR}/../Android.bp"
|
bpfmt -w "${DIR}/../Android.bp"
|
||||||
|
|
||||||
|
|||||||
@ -703,7 +703,7 @@ PrintHeader()
|
|||||||
GenerateDefault(targets)
|
GenerateDefault(targets)
|
||||||
print('\n\n')
|
print('\n\n')
|
||||||
|
|
||||||
for target in targets.values():
|
for name, target in sorted(targets.items()):
|
||||||
typ = target['type']
|
typ = target['type']
|
||||||
if typ == 'static_library':
|
if typ == 'static_library':
|
||||||
GenerateStaticLib(target, targets)
|
GenerateStaticLib(target, targets)
|
||||||
|
|||||||
Reference in New Issue
Block a user