update kernel worker to enable sync-async

Bug: https://github.com/dart-lang/sdk/issues/34852
Change-Id: I80a6209fd241aec455c67a9eb1893bf3c4c70e47
Reviewed-on: https://dart-review.googlesource.com/c/80561
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
This commit is contained in:
Jacob MacDonald 2018-10-18 16:07:18 +00:00 committed by commit-bot@chromium.org
parent bb93696c96
commit 8f4e379665

View file

@ -132,10 +132,11 @@ Future<bool> computeKernel(List<String> args,
Target target;
var summaryOnly = parsedArgs['summary-only'] as bool;
var excludeNonSources = parsedArgs['exclude-non-sources'] as bool;
var targetFlags = new TargetFlags(syncAsync: true);
if (summaryOnly) {
target = new SummaryTarget(sources, excludeNonSources, new TargetFlags());
target = new SummaryTarget(sources, excludeNonSources, targetFlags);
} else {
target = new VmTarget(new TargetFlags());
target = new VmTarget(targetFlags);
}
var state = await fe.initializeCompiler(
// TODO(sigmund): pass an old state once we can make use of it.