mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Correct profile-mode AOT snapshot flags (#17435)
Previously, in non-release (i.e. profile) AOT builds, we were setting --no-checked and --conditional_directives flags. --no-checked is the default, and we don't make use of conditional directives in Flutter.
This commit is contained in:
parent
e4f553324a
commit
1c27a458a8
@ -194,12 +194,6 @@ class AOTSnapshotter {
|
||||
'--strong',
|
||||
]);
|
||||
}
|
||||
if (buildMode != BuildMode.release) {
|
||||
genSnapshotArgs.addAll(<String>[
|
||||
'--no-checked',
|
||||
'--conditional_directives',
|
||||
]);
|
||||
}
|
||||
if (extraGenSnapshotOptions != null && extraGenSnapshotOptions.isNotEmpty) {
|
||||
printTrace('Extra gen_snapshot options: $extraGenSnapshotOptions');
|
||||
genSnapshotArgs.addAll(extraGenSnapshotOptions);
|
||||
|
@ -396,8 +396,6 @@ void main() {
|
||||
'--dependencies=${fs.path.join(outputPath, 'snapshot.d')}',
|
||||
'--reify-generic-functions',
|
||||
'--strong',
|
||||
'--no-checked',
|
||||
'--conditional_directives',
|
||||
'--snapshot_kind=app-aot-assembly',
|
||||
'--assembly=${fs.path.join(outputPath, 'snapshot_assembly.S')}',
|
||||
'main.dill',
|
||||
|
Loading…
Reference in New Issue
Block a user