Fix AOT snapshotting depfile path (#17050)

Fixes a bug introduced in 82f969ff05 where
the depfile used for AOT snapshotting, useful in particular for skipping
gen_snapshot when inputs/outputs haven't changed since the last build.
This commit is contained in:
Chris Bracken 2018-04-27 13:03:26 -07:00 committed by GitHub
parent 31156aed43
commit 972a9e915a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ class BuildAotCommand extends BuildSubCommand {
platform: platform,
buildMode: getBuildMode(),
mainPath: findMainDartFile(targetFile),
depfilePath: 'depFilePathGoesHere',
depfilePath: fs.path.join(outputPath, 'snapshot.d'),
packagesPath: PackageMap.globalPackagesPath,
outputPath: outputPath,
previewDart2: argResults['preview-dart-2'],