mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
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:
parent
bb93696c96
commit
8f4e379665
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue