Remove unused --packages argument to gen_snapshot. (#28101)

This command line argument has already been removed in the main
Dart repository, so building flutter with the latest dart fails.
This commit is contained in:
Stevie Strickland 2019-02-21 09:03:59 +01:00 committed by Martin Kustermann
parent a010912bdd
commit 1c021506df

View File

@ -46,13 +46,11 @@ class GenSnapshot {
Future<int> run({
@required SnapshotType snapshotType,
@required String packagesPath,
IOSArch iosArch,
Iterable<String> additionalArgs = const <String>[],
}) {
final List<String> args = <String>[
'--causal_async_stacks',
'--packages=$packagesPath',
]..addAll(additionalArgs);
final String snapshotterPath = getSnapshotterPath(snapshotType);
@ -193,7 +191,6 @@ class AOTSnapshotter {
final SnapshotType snapshotType = SnapshotType(platform, buildMode);
final int genSnapshotExitCode = await genSnapshot.run(
snapshotType: snapshotType,
packagesPath: packageMap.packagesPath,
additionalArgs: genSnapshotArgs,
iosArch: iosArch,
);
@ -537,7 +534,6 @@ class JITSnapshotter {
final SnapshotType snapshotType = SnapshotType(platform, buildMode);
final int genSnapshotExitCode = await genSnapshot.run(
snapshotType: snapshotType,
packagesPath: packagesPath,
additionalArgs: genSnapshotArgs,
);
if (genSnapshotExitCode != 0) {