Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cleanup obsolete --compact-async compiler option #118894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/flutter_tools/lib/src/compile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import 'convert.dart';

/// Opt-in changes to the dart compilers.
const List<String> kDartCompilerExperiments = <String>[
// improve AOT code size.
'--compact-async',
];

/// The target model describes the set of core libraries that are available within
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ void main() {
'--no-print-incremental-dependencies',
'-Ddart.vm.profile=true',
'-Ddart.vm.product=false',
'--compact-async',
'--no-link-platform',
'--aot',
'--tfa',
Expand Down Expand Up @@ -249,7 +248,6 @@ void main() {
'--no-print-incremental-dependencies',
'-Ddart.vm.profile=false',
'-Ddart.vm.product=true',
'--compact-async',
'--no-link-platform',
'--aot',
'--tfa',
Expand Down
2 changes: 0 additions & 2 deletions packages/flutter_tools/test/general.shard/compile_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,11 @@ void main() {
testWithoutContext('buildModeOptions removes matching profile define in profile mode', () {
expect(buildModeOptions(BuildMode.profile, <String>['dart.vm.profile=true']), <String>[
'-Ddart.vm.product=false',
'--compact-async'
]);
});

testWithoutContext('buildModeOptions removes both matching profile and release define in profile mode', () {
expect(buildModeOptions(BuildMode.profile, <String>['dart.vm.profile=false', 'dart.vm.product=true']), <String>[
'--compact-async'
]);
});
}