[flutter_tools] ensure --track-widget-creation is not enabled for build aot (#52261)

This option was defaulting to on, which was tickling some benchmarks
This commit is contained in:
Jonah Williams 2020-03-09 17:19:14 -07:00 committed by GitHub
parent 084a7077ce
commit bc43b41d99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View file

@ -25,7 +25,7 @@ class BuildCommand extends FlutterCommand {
addSubcommand(BuildAarCommand());
addSubcommand(BuildApkCommand(verboseHelp: verboseHelp));
addSubcommand(BuildAppBundleCommand(verboseHelp: verboseHelp));
addSubcommand(BuildAotCommand(verboseHelp: verboseHelp));
addSubcommand(BuildAotCommand());
addSubcommand(BuildIOSCommand());
addSubcommand(BuildIOSFrameworkCommand(
aotBuilder: AotBuilder(),

View file

@ -14,7 +14,7 @@ import 'build.dart';
/// Builds AOT snapshots into platform specific library containers.
class BuildAotCommand extends BuildSubCommand with TargetPlatformBasedDevelopmentArtifacts {
BuildAotCommand({bool verboseHelp = false, this.aotBuilder}) {
BuildAotCommand({this.aotBuilder}) {
addTreeShakeIconsFlag();
usesTargetOption();
addBuildModeFlags();
@ -51,10 +51,6 @@ class BuildAotCommand extends BuildSubCommand with TargetPlatformBasedDevelopmen
help: 'Build the AOT bundle with bitcode. Requires a compatible bitcode engine.',
hide: true,
);
// --track-widget-creation is exposed as a flag here to deal with build
// invalidation issues, but it is ignored -- there are no plans to support
// it for AOT mode.
usesTrackWidgetCreation(hasEffect: false, verboseHelp: verboseHelp);
}
AotBuilder aotBuilder;