mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
Rename devcompiler to ddc
The value 'devcompiler' is never being passed to this argument so this will not break any known use cases. The name 'ddc' has better consistency with how we label SDK platforms in `build_runner`. Bug: https://github.com/dart-lang/build/issues/2174 Change-Id: I95f6cb75ec86c2f276298781443203d201550815 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99704 Reviewed-by: Jake Macdonald <jakemac@google.com> Commit-Queue: Nate Bosch <nbosch@google.com>
This commit is contained in:
parent
6d91643073
commit
d8a0d68bd6
|
@ -107,8 +107,8 @@ final summaryArgsParser = new ArgParser()
|
|||
negatable: true,
|
||||
help: 'Whether to only build summary files.')
|
||||
..addOption('target',
|
||||
allowed: const ['vm', 'dart2js', 'devcompiler'],
|
||||
help: 'Build kernel for the vm, dart2js, or devcompiler')
|
||||
allowed: const ['vm', 'dart2js', 'ddc'],
|
||||
help: 'Build kernel for the vm, dart2js, or ddc')
|
||||
..addOption('dart-sdk-summary')
|
||||
..addMultiOption('input-summary')
|
||||
..addMultiOption('input-linked')
|
||||
|
@ -166,7 +166,7 @@ Future<ComputeKernelResult> computeKernel(List<String> args,
|
|||
// TODO(sigmund,jakemac): make target mandatory. We allow null to be backwards
|
||||
// compatible while we migrate existing clients of this tool.
|
||||
var targetName =
|
||||
(parsedArgs['target'] as String) ?? (summaryOnly ? 'devcompiler' : 'vm');
|
||||
(parsedArgs['target'] as String) ?? (summaryOnly ? 'ddc' : 'vm');
|
||||
var targetFlags = new TargetFlags();
|
||||
Target target;
|
||||
switch (targetName) {
|
||||
|
@ -183,13 +183,13 @@ Future<ComputeKernelResult> computeKernel(List<String> args,
|
|||
'error: --summary-only not supported for the dart2js target');
|
||||
}
|
||||
break;
|
||||
case 'devcompiler':
|
||||
case 'ddc':
|
||||
// TODO(jakemac):If `generateKernel` changes to return a summary
|
||||
// component, process the component instead.
|
||||
target = new DevCompilerSummaryTarget(sources, excludeNonSources);
|
||||
if (!summaryOnly) {
|
||||
out.writeln('error: --no-summary-only not supported for the '
|
||||
'devcompiler target');
|
||||
'ddc target');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue