mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:07:06 +00:00
Fix build_pkgs.dart to not mutate arguments list. (#30078)
* Fix build_pkgs.dart to not mutate arguments list. Also remove build of when package since it's apparently gone now. * Use sublist to remove element.
This commit is contained in:
parent
d2569cc3ee
commit
52a9e3d9c6
|
@ -17,7 +17,9 @@ String outputDirectory;
|
|||
/// Otherwise, only builds the modules needed by the tests.
|
||||
void main(List<String> arguments) {
|
||||
var isTravis = arguments.isNotEmpty && arguments.last == "travis";
|
||||
if (isTravis) arguments.removeLast();
|
||||
if (isTravis) {
|
||||
arguments = arguments.sublist(0, arguments.length - 1);
|
||||
}
|
||||
|
||||
if (arguments.length != 1) {
|
||||
print("Usage: dart build_pkgs.dart <output_dir> [travis]");
|
||||
|
@ -55,7 +57,6 @@ void main(List<String> arguments) {
|
|||
compileModule('typed_data');
|
||||
compileModule('usage');
|
||||
compileModule('utf');
|
||||
compileModule('when');
|
||||
}
|
||||
|
||||
// Composite packages with dependencies.
|
||||
|
|
Loading…
Reference in a new issue