mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
[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:
parent
084a7077ce
commit
bc43b41d99
|
@ -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(),
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue