mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[flutter_tools] only strip when bitcode is enabled (#49595)
This commit is contained in:
parent
fdb0225f8c
commit
afa24b1a18
@ -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);
|
||||
|
||||
@ -445,7 +445,6 @@ void main() {
|
||||
'--deterministic',
|
||||
'--snapshot_kind=app-aot-assembly',
|
||||
'--assembly=$assembly',
|
||||
'--strip',
|
||||
'--no-sim-use-hardfp',
|
||||
'--no-use-integer-division',
|
||||
'--no-causal-async-stacks',
|
||||
@ -495,7 +494,6 @@ void main() {
|
||||
'--deterministic',
|
||||
'--snapshot_kind=app-aot-assembly',
|
||||
'--assembly=${globals.fs.path.join(outputPath, 'snapshot_assembly.S')}',
|
||||
'--strip',
|
||||
'--no-causal-async-stacks',
|
||||
'--lazy-async-stacks',
|
||||
'main.dill',
|
||||
@ -534,7 +532,6 @@ void main() {
|
||||
'--deterministic',
|
||||
'--snapshot_kind=app-aot-assembly',
|
||||
'--assembly=${globals.fs.path.join(outputPath, 'snapshot_assembly.S')}',
|
||||
'--strip',
|
||||
'--no-sim-use-hardfp',
|
||||
'--no-use-integer-division',
|
||||
'--no-causal-async-stacks',
|
||||
@ -575,7 +572,6 @@ void main() {
|
||||
'--deterministic',
|
||||
'--snapshot_kind=app-aot-assembly',
|
||||
'--assembly=${globals.fs.path.join(outputPath, 'snapshot_assembly.S')}',
|
||||
'--strip',
|
||||
'--no-causal-async-stacks',
|
||||
'--lazy-async-stacks',
|
||||
'main.dill',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user