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
581a343b
Unverified
Commit
581a343b
authored
Jun 09, 2018
by
Stanislav Baranov
Committed by
GitHub
Jun 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gradle dependency for gen_snapshot in AOT builds. (#18322)
parent
4db7daf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
build.dart
packages/flutter_tools/lib/src/base/build.dart
+11
-3
No files found.
packages/flutter_tools/lib/src/base/build.dart
View file @
581a343b
...
...
@@ -36,6 +36,11 @@ class SnapshotType {
class
GenSnapshot
{
const
GenSnapshot
();
static
String
getSnapshotterPath
(
SnapshotType
snapshotType
)
{
return
artifacts
.
getArtifactPath
(
Artifact
.
genSnapshot
,
snapshotType
.
platform
,
snapshotType
.
mode
);
}
Future
<
int
>
run
({
@required
SnapshotType
snapshotType
,
@required
String
packagesPath
,
...
...
@@ -50,7 +55,8 @@ class GenSnapshot {
'--dependencies=
$depfilePath
'
,
'--print_snapshot_sizes'
,
]..
addAll
(
additionalArgs
);
final
String
snapshotterPath
=
artifacts
.
getArtifactPath
(
Artifact
.
genSnapshot
,
snapshotType
.
platform
,
snapshotType
.
mode
);
final
String
snapshotterPath
=
getSnapshotterPath
(
snapshotType
);
// iOS gen_snapshot is a multi-arch binary. Running as an i386 binary will
// generate armv7 code. Running as an x86_64 binary will generate arm64
...
...
@@ -195,8 +201,9 @@ class AOTSnapshotter {
return
0
;
}
final
SnapshotType
snapshotType
=
new
SnapshotType
(
platform
,
buildMode
);
final
int
genSnapshotExitCode
=
await
genSnapshot
.
run
(
snapshotType:
new
SnapshotType
(
platform
,
buildMode
)
,
snapshotType:
snapshotType
,
packagesPath:
packageMap
.
packagesPath
,
depfilePath:
depfilePath
,
additionalArgs:
genSnapshotArgs
,
...
...
@@ -209,7 +216,8 @@ class AOTSnapshotter {
// Write path to gen_snapshot, since snapshots have to be re-generated when we roll
// the Dart SDK.
await
outputDir
.
childFile
(
'gen_snapshot.d'
).
writeAsString
(
'snapshot.d:
$genSnapshot
\n
'
);
final
String
genSnapshotPath
=
GenSnapshot
.
getSnapshotterPath
(
snapshotType
);
await
outputDir
.
childFile
(
'gen_snapshot.d'
).
writeAsString
(
'snapshot.d:
$genSnapshotPath
\n
'
);
// On iOS, we use Xcode to compile the snapshot into a dynamic library that the
// end-developer can link into their app.
...
...
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