Build snapshots with --sync-async to match the engine. (#19495)

Bug: https://github.com/flutter/flutter/issues/19494
This commit is contained in:
Ryan Macnak
2018-07-17 18:07:54 -07:00
committed by GitHub
parent 4afc9f8930
commit b8b6d4166c
2 changed files with 16 additions and 0 deletions

View File

@@ -199,6 +199,7 @@ class AOTSnapshotter {
genSnapshotArgs.addAll(<String>[
'--reify-generic-functions',
'--strong',
'--sync-async',
]);
}
if (extraGenSnapshotOptions != null && extraGenSnapshotOptions.isNotEmpty) {
@@ -443,6 +444,7 @@ class CoreJITSnapshotter {
final List<String> genSnapshotArgs = <String>[
'--reify-generic-functions',
'--strong',
'--sync-async',
];
if (buildMode == BuildMode.debug) {
genSnapshotArgs.add('--enable_asserts');