From 574b2829c8c45b1697e8e9052e6bafb792da38ba Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 5 Aug 2016 15:55:43 -0700 Subject: [PATCH] Update the sky_snapshot command line args to match the latest engine (#5273) --- packages/flutter_tools/lib/src/flx.dart | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/flutter_tools/lib/src/flx.dart b/packages/flutter_tools/lib/src/flx.dart index 7c052be1189..4230811a102 100644 --- a/packages/flutter_tools/lib/src/flx.dart +++ b/packages/flutter_tools/lib/src/flx.dart @@ -29,22 +29,21 @@ const String _kSnapshotKey = 'snapshot_blob.bin'; Future createSnapshot({ String mainPath, String snapshotPath, - String depfilePath, - String buildOutputPath + String depfilePath }) { assert(mainPath != null); assert(snapshotPath != null); final List args = [ tools.getHostToolPath(HostTool.SkySnapshot), - mainPath, '--packages=${path.absolute(PackageMap.globalPackagesPath)}', '--snapshot=$snapshotPath' ]; - if (depfilePath != null) + if (depfilePath != null) { args.add('--depfile=$depfilePath'); - if (buildOutputPath != null) - args.add('--build-output=$buildOutputPath'); + args.add('--build-output=$snapshotPath'); + } + args.add(mainPath); return runCommandAndStreamOutput(args); }