[flutter_tools] only apply --strip to iOS gen_snapshot in release mode (#49596)

This commit is contained in:
Jonah Williams
2020-01-27 19:36:12 -08:00
committed by GitHub
parent afa24b1a18
commit 3233252cb1
2 changed files with 1 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ class AOTSnapshotter {
genSnapshotArgs.add('--assembly=$assembly');
// TODO(jonahwilliams): determine the correct time to use strip
// since this is required for the future dwarf strack traces option.
if (bitcode) {
if (bitcode && buildMode == BuildMode.release) {
genSnapshotArgs.add('--strip');
}
} else {

View File

@@ -326,7 +326,6 @@ void main() {
'--deterministic',
'--snapshot_kind=app-aot-assembly',
'--assembly=$assembly',
'--strip',
'--no-sim-use-hardfp',
'--no-use-integer-division',
'--no-causal-async-stacks',