ecae983ef3
The incremental compiler doesn't initialize from dill when it finds that something in that dill has changed path (because of a change in package version for instance). Before this CL, though, it still initialized the incremental serializer from the data, leading to weird and wrong results: If a package still in use had been changed it could output the old serialization for that package because invalidations didn't come into effect (as the incremental compiler was starting from scratch and there thus was no libraries that it didn't reuse (which are the ones that are "invalidated" in the serialization world)). This CL fixes the issue by only initializing the incremental serializer when the incremental compiler has sucessfully initialized from the dill. This should fix the problem that caused #39851. Fixes #39851. Change-Id: Ia62c4b7d96878174e0950a0dbbcdcbc4187615c5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/130371 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>