[flutter_tools] only strip when bitcode is enabled (#49595)

This commit is contained in:
Jonah Williams
2020-01-27 19:10:27 -08:00
committed by GitHub
parent fdb0225f8c
commit afa24b1a18
2 changed files with 5 additions and 5 deletions

View File

@@ -137,7 +137,11 @@ class AOTSnapshotter {
outputPaths.add(assembly);
genSnapshotArgs.add('--snapshot_kind=app-aot-assembly');
genSnapshotArgs.add('--assembly=$assembly');
genSnapshotArgs.add('--strip');
// TODO(jonahwilliams): determine the correct time to use strip
// since this is required for the future dwarf strack traces option.
if (bitcode) {
genSnapshotArgs.add('--strip');
}
} else {
final String aotSharedLibrary = globals.fs.path.join(outputDir.path, 'app.so');
outputPaths.add(aotSharedLibrary);