add ignorable track-widget-creation flag to build and remove --track-widget-creation from xcode backend aot build aot (#31399)

This commit is contained in:
Jonah Williams
2019-04-22 16:21:17 -07:00
committed by GitHub
parent a476a08e62
commit 096439b417
2 changed files with 7 additions and 2 deletions

View File

@@ -183,8 +183,7 @@ BuildApp() {
--${build_mode} \
--ios-arch="${archs}" \
${flutter_engine_flag} \
${local_engine_flag} \
${track_widget_creation_flag}
${local_engine_flag}
if [[ $? -ne 0 ]]; then
EchoError "Failed to build ${project_path}."

View File

@@ -38,6 +38,12 @@ class BuildAotCommand extends BuildSubCommand with TargetPlatformBasedDevelopmen
defaultsTo: false,
help: 'Report timing information about build steps in machine readable form,',
)
// track-widget-creation is exposed as a flag here but ignored to deal with build
// invalidation issues - there are no plans to support it for AOT mode.
..addFlag('track-widget-creation',
defaultsTo: false,
hide: true,
)
..addMultiOption('ios-arch',
splitCommas: true,
defaultsTo: defaultIOSArchs.map<String>(getNameForIOSArch),