mirror of
https://github.com/dart-lang/sdk
synced 2024-10-03 03:22:06 +00:00
[3.0 alpha][ddc] Remove unused command line args
The `-k`, `--kernel`, and `--dart-sdk` arguments have been ignored since v2.8.1. Change-Id: I28e793f3e2023cc09c279ca65d08295b1ed11028 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276771 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
parent
baae020f70
commit
8e1f57666e
|
@ -100,6 +100,9 @@
|
||||||
|
|
||||||
### Tools
|
### Tools
|
||||||
|
|
||||||
|
#### Web Dev Compiler (DDC)
|
||||||
|
- Removed deprecated command line flags `-k`, `--kernel`, and `--dart-sdk`.
|
||||||
|
|
||||||
#### Linter
|
#### Linter
|
||||||
|
|
||||||
Updates the Linter to `1.32.0`, which includes changes that
|
Updates the Linter to `1.32.0`, which includes changes that
|
||||||
|
|
|
@ -32,7 +32,7 @@ import 'module_symbols.dart';
|
||||||
import 'module_symbols_collector.dart';
|
import 'module_symbols_collector.dart';
|
||||||
import 'target.dart';
|
import 'target.dart';
|
||||||
|
|
||||||
const _binaryName = 'dartdevc -k';
|
const _binaryName = 'dartdevc';
|
||||||
|
|
||||||
/// Invoke the compiler with [args].
|
/// Invoke the compiler with [args].
|
||||||
///
|
///
|
||||||
|
@ -104,18 +104,12 @@ Future<CompilerResult> _compile(List<String> args,
|
||||||
help: 'The directories to search when encountering uris with the '
|
help: 'The directories to search when encountering uris with the '
|
||||||
'specified multi-root scheme.',
|
'specified multi-root scheme.',
|
||||||
defaultsTo: [Uri.base.path])
|
defaultsTo: [Uri.base.path])
|
||||||
..addOption('dart-sdk',
|
|
||||||
help: '(unsupported with --kernel) path to the Dart SDK.', hide: true)
|
|
||||||
..addFlag('compile-sdk',
|
..addFlag('compile-sdk',
|
||||||
help: 'Build an SDK module.', defaultsTo: false, hide: true)
|
help: 'Build an SDK module.', defaultsTo: false, hide: true)
|
||||||
..addOption('libraries-file',
|
..addOption('libraries-file',
|
||||||
help: 'The path to the libraries.json file for the sdk.')
|
help: 'The path to the libraries.json file for the sdk.')
|
||||||
..addOption('used-inputs-file',
|
..addOption('used-inputs-file',
|
||||||
help: 'If set, the file to record inputs used.', hide: true)
|
help: 'If set, the file to record inputs used.', hide: true);
|
||||||
..addFlag('kernel',
|
|
||||||
abbr: 'k',
|
|
||||||
help: 'Deprecated and ignored. To be removed in a future release.',
|
|
||||||
hide: true);
|
|
||||||
SharedCompilerOptions.addArguments(argParser);
|
SharedCompilerOptions.addArguments(argParser);
|
||||||
var declaredVariables = parseAndRemoveDeclaredVariables(args);
|
var declaredVariables = parseAndRemoveDeclaredVariables(args);
|
||||||
ArgResults argResults;
|
ArgResults argResults;
|
||||||
|
|
Loading…
Reference in a new issue