Print the malioc_diff.py command to update for new shaders (flutter/engine#40322)
This commit is contained in:
@@ -287,12 +287,18 @@ def main(argv):
|
||||
|
||||
for filename, shaders in after_json.items():
|
||||
if filename not in before_json:
|
||||
print(
|
||||
'Shader {} is new. Run with --update to update checked-in results'
|
||||
.format(filename)
|
||||
)
|
||||
print('Shader {} is new.'.format(filename))
|
||||
changed = True
|
||||
|
||||
if changed:
|
||||
print(
|
||||
'There are new shaders, or performance changes to existing shaders. '
|
||||
'The golden file must be updated after a build of android_debug_unopt '
|
||||
'using the --malioc-path flag to the flutter/tools/gn script.\n\n'
|
||||
'$ ./flutter/impeller/tools/malioc_diff.py --before {} --after {} --update'
|
||||
.format(args.before, args.after)
|
||||
)
|
||||
|
||||
return 1 if changed else 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user