Temporarily ignore --strong option in flutter builds

Change-Id: Ib9f80ef29cc301b0a8354bcaeddaf47177784d9c
Reviewed-on: https://dart-review.googlesource.com/c/79203
Auto-Submit: Peter von der Ahé <ahe@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
This commit is contained in:
Peter von der Ahé 2018-10-11 09:40:09 +00:00 committed by commit-bot@chromium.org
parent f0a30bc8d1
commit 49d7fb39ac

View file

@ -6,7 +6,7 @@ library fasta.tool.command_line;
import 'dart:async' show Future;
import 'dart:io' show exit, exitCode;
import 'dart:io' show exit, exitCode, stderr;
import 'package:build_integration/file_system/single_root.dart'
show SingleRootFileSystem;
@ -436,6 +436,13 @@ Future<T> withGlobalOptions<T>(
ProcessedOptions options;
CommandLineProblem problem;
try {
if (arguments.contains("--strong") &&
arguments.contains("--target=flutter")) {
// TODO(ahe): Temporarily ignore option to unbreak flutter build.
arguments = new List<String>.from(arguments);
arguments.remove("--strong");
stderr.writeln("Note: the option '--strong' is deprecated.");
}
parsedArguments = ParsedArguments.parse(arguments, optionSpecification);
options = analyzeCommandLine(
programName, parsedArguments, areRestArgumentsInputs, verbose);