Fix snapshot fingerprinting in --preview-dart-2 mode. (#14843)
* 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)
V
Vyacheslav Egorov committed
1f6b9471a87ce90472afd8ee5fc951e5662208b5
Parent: 3ee85e0
Committed by GitHub <noreply@github.com>
on 2/23/2018, 8:40:19 PM