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
698e1016
Commit
698e1016
authored
Jun 29, 2018
by
sjindel-google
Committed by
Vyacheslav Egorov
Jun 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let the Kernel FE know whether it's building for a release VM. (#18876)
Fixes #18829
parent
ca0e144f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
build.dart
packages/flutter_tools/lib/src/base/build.dart
+1
-0
compile.dart
packages/flutter_tools/lib/src/compile.dart
+4
-0
No files found.
packages/flutter_tools/lib/src/base/build.dart
View file @
698e1016
...
...
@@ -391,6 +391,7 @@ class AOTSnapshotter {
aot:
true
,
entryPointsJsonFiles:
entryPointsJsonFiles
,
trackWidgetCreation:
false
,
targetProductVm:
buildMode
==
BuildMode
.
release
,
);
// Write path to frontend_server, since things need to be re-generated when that changes.
...
...
packages/flutter_tools/lib/src/compile.dart
View file @
698e1016
...
...
@@ -84,6 +84,7 @@ class KernelCompiler {
String
packagesPath
,
List
<
String
>
fileSystemRoots
,
String
fileSystemScheme
,
bool
targetProductVm
=
false
,
})
async
{
final
String
frontendServer
=
artifacts
.
getArtifactPath
(
Artifact
.
frontendServerSnapshotForEngineDartSdk
...
...
@@ -134,6 +135,9 @@ class KernelCompiler {
command
.
add
(
'--aot'
);
command
.
add
(
'--tfa'
);
}
if
(
targetProductVm
)
{
command
.
add
(
'-Ddart.vm.product=true'
);
}
if
(
entryPointsJsonFiles
!=
null
)
{
for
(
String
entryPointsJson
in
entryPointsJsonFiles
)
{
command
.
addAll
(<
String
>[
'--entry-points'
,
entryPointsJson
]);
...
...
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