Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
3aa72cc2
Unverified
Commit
3aa72cc2
authored
Feb 12, 2020
by
sjindel-google
Committed by
GitHub
Feb 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ELF for AOT snapshots on Fuchsia. (#50468)
parent
d3e1e293
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
23 deletions
+5
-23
fuchsia_build.dart
packages/flutter_tools/lib/src/fuchsia/fuchsia_build.dart
+5
-23
No files found.
packages/flutter_tools/lib/src/fuchsia/fuchsia_build.dart
View file @
3aa72cc2
...
...
@@ -85,10 +85,7 @@ Future<void> _genSnapshot(
final
String
appName
=
fuchsiaProject
.
project
.
manifest
.
appName
;
final
String
dilPath
=
globals
.
fs
.
path
.
join
(
outDir
,
'
$appName
.dil'
);
final
String
vmSnapshotData
=
globals
.
fs
.
path
.
join
(
outDir
,
'vm_data.aotsnapshot'
);
final
String
vmSnapshotInstructions
=
globals
.
fs
.
path
.
join
(
outDir
,
'vm_instructions.aotsnapshot'
);
final
String
snapshotData
=
globals
.
fs
.
path
.
join
(
outDir
,
'data.aotsnapshot'
);
final
String
snapshotInstructions
=
globals
.
fs
.
path
.
join
(
outDir
,
'instructions.aotsnapshot'
);
final
String
elf
=
globals
.
fs
.
path
.
join
(
outDir
,
'elf.aotsnapshot'
);
final
String
genSnapshot
=
globals
.
artifacts
.
getArtifactPath
(
Artifact
.
genSnapshot
,
...
...
@@ -101,11 +98,8 @@ Future<void> _genSnapshot(
'--no-causal-async-stacks'
,
'--lazy-async-stacks'
,
'--deterministic'
,
'--snapshot_kind=app-aot-blobs'
,
'--vm_snapshot_data=
$vmSnapshotData
'
,
'--vm_snapshot_instructions=
$vmSnapshotInstructions
'
,
'--isolate_snapshot_data=
$snapshotData
'
,
'--isolate_snapshot_instructions=
$snapshotInstructions
'
,
'--snapshot_kind=app-aot-elf'
,
'--elf=
$elf
'
,
if
(
buildInfo
.
isDebug
)
'--enable-asserts'
,
dilPath
,
];
...
...
@@ -213,21 +207,9 @@ Future<void> _buildPackage(
final
File
manifestFile
=
globals
.
fs
.
file
(
packageManifest
);
if
(
buildInfo
.
usesAot
)
{
final
String
vmSnapshotData
=
globals
.
fs
.
path
.
join
(
outDir
,
'vm_data.aotsnapshot'
);
final
String
vmSnapshotInstructions
=
globals
.
fs
.
path
.
join
(
outDir
,
'vm_instructions.aotsnapshot'
);
final
String
snapshotData
=
globals
.
fs
.
path
.
join
(
outDir
,
'data.aotsnapshot'
);
final
String
snapshotInstructions
=
globals
.
fs
.
path
.
join
(
outDir
,
'instructions.aotsnapshot'
);
final
String
elf
=
globals
.
fs
.
path
.
join
(
outDir
,
'elf.aotsnapshot'
);
manifestFile
.
writeAsStringSync
(
'data/
$appName
/vm_snapshot_data.bin=
$vmSnapshotData
\n
'
);
manifestFile
.
writeAsStringSync
(
'data/
$appName
/vm_snapshot_instructions.bin=
$vmSnapshotInstructions
\n
'
,
mode:
FileMode
.
append
);
manifestFile
.
writeAsStringSync
(
'data/
$appName
/isolate_snapshot_data.bin=
$snapshotData
\n
'
,
mode:
FileMode
.
append
);
manifestFile
.
writeAsStringSync
(
'data/
$appName
/isolate_snapshot_instructions.bin=
$snapshotInstructions
\n
'
,
mode:
FileMode
.
append
);
'data/
$appName
/app_aot_snapshot.so=
$elf
\n
'
);
}
else
{
final
String
dilpmanifest
=
globals
.
fs
.
path
.
join
(
outDir
,
'
$appName
.dilpmanifest'
);
manifestFile
.
writeAsStringSync
(
globals
.
fs
.
file
(
dilpmanifest
).
readAsStringSync
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment