• Vyacheslav Egorov's avatar
    Fix snapshot fingerprinting in --preview-dart-2 mode. (#14843) · 1f6b9471
    Vyacheslav Egorov authored
    * Fix snapshot fingerprinting in --preview-dart-2 mode.
    
    This is a follow up to PR #14775 - instead of treating dill file
    as an input treat as intermediate file and don't fingerprint it.
    
    Make sure to always use original main Dart file as an entry
    point for fingerprint calculation.
    
    This fixes an issue that AOT snapshot would not be recompiled in
    the preview-dart-2 mode if entry point changes, e.g.
    
    $ flutter build aot -t t/x.dart --preview-dart-2
    $ flutter build aot -t t/y.dart --preview-dart-2
    
    The second invocation would not build AOT snapshot.
    
    (This issue is visible on the microbencmarks bot)
    1f6b9471
build_aot.dart 16.9 KB