Opt into deterministic snapshots.
Also, remove old flags.
This commit is contained in:
@@ -122,14 +122,8 @@ class AOTSnapshotter {
|
||||
|
||||
final String depfilePath = fs.path.join(outputDir.path, 'snapshot.d');
|
||||
final List<String> genSnapshotArgs = <String>[
|
||||
'--url_mapping=dart:ui,$uiPath',
|
||||
'--url_mapping=dart:vmservice_io,$vmServicePath',
|
||||
'--deterministic',
|
||||
];
|
||||
genSnapshotArgs.addAll(<String>[
|
||||
'--reify-generic-functions',
|
||||
'--strong',
|
||||
'--sync-async',
|
||||
]);
|
||||
if (extraGenSnapshotOptions != null && extraGenSnapshotOptions.isNotEmpty) {
|
||||
printTrace('Extra gen_snapshot options: $extraGenSnapshotOptions');
|
||||
genSnapshotArgs.addAll(extraGenSnapshotOptions);
|
||||
@@ -379,9 +373,7 @@ class JITSnapshotter {
|
||||
|
||||
final String depfilePath = fs.path.join(outputDir.path, 'snapshot.d');
|
||||
final List<String> genSnapshotArgs = <String>[
|
||||
'--reify-generic-functions',
|
||||
'--strong',
|
||||
'--sync-async',
|
||||
'--deterministic',
|
||||
];
|
||||
if (buildMode == BuildMode.debug) {
|
||||
genSnapshotArgs.add('--enable_asserts');
|
||||
|
||||
Reference in New Issue
Block a user