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
aa333fda
Unverified
Commit
aa333fda
authored
Nov 06, 2019
by
Jonah Williams
Committed by
GitHub
Nov 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
link platform should be true for profile (#44279)
parent
ed82bb82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
dart.dart
...ages/flutter_tools/lib/src/build_system/targets/dart.dart
+2
-2
dart_test.dart
...ls/test/general.shard/build_system/targets/dart_test.dart
+6
-1
No files found.
packages/flutter_tools/lib/src/build_system/targets/dart.dart
View file @
aa333fda
...
...
@@ -168,13 +168,13 @@ class KernelSnapshot extends Target {
platform:
targetPlatform
,
mode:
buildMode
,
),
aot:
buildMode
!=
BuildMode
.
debug
,
aot:
buildMode
.
isPrecompiled
,
buildMode:
buildMode
,
trackWidgetCreation:
trackWidgetCreation
&&
buildMode
==
BuildMode
.
debug
,
targetModel:
targetModel
,
outputFilePath:
environment
.
buildDir
.
childFile
(
'app.dill'
).
path
,
packagesPath:
packagesPath
,
linkPlatformKernelIn:
buildMode
==
BuildMode
.
release
,
linkPlatformKernelIn:
buildMode
.
isPrecompiled
,
mainPath:
targetFileAbsolute
,
depFilePath:
environment
.
buildDir
.
childFile
(
'kernel_snapshot.d'
).
path
,
);
...
...
packages/flutter_tools/test/general.shard/build_system/targets/dart_test.dart
View file @
aa333fda
...
...
@@ -159,6 +159,7 @@ flutter_tools:lib/''');
depFilePath:
anyNamed
(
'depFilePath'
),
packagesPath:
anyNamed
(
'packagesPath'
),
mainPath:
anyNamed
(
'mainPath'
),
linkPlatformKernelIn:
anyNamed
(
'linkPlatformKernelIn'
),
)).
thenAnswer
((
Invocation
_
)
async
{
return
const
CompilerOutput
(
'example'
,
0
,
<
Uri
>[]);
});
...
...
@@ -183,11 +184,14 @@ flutter_tools:lib/''');
depFilePath:
anyNamed
(
'depFilePath'
),
packagesPath:
anyNamed
(
'packagesPath'
),
mainPath:
anyNamed
(
'mainPath'
),
linkPlatformKernelIn:
false
,
)).
thenAnswer
((
Invocation
_
)
async
{
return
const
CompilerOutput
(
'example'
,
0
,
<
Uri
>[]);
});
await
const
KernelSnapshot
().
build
(
androidEnvironment
..
defines
[
kTrackWidgetCreation
]
=
'false'
);
await
const
KernelSnapshot
().
build
(
androidEnvironment
..
defines
[
kBuildMode
]
=
'debug'
..
defines
[
kTrackWidgetCreation
]
=
'false'
);
},
overrides:
<
Type
,
Generator
>{
KernelCompilerFactory:
()
=>
MockKernelCompilerFactory
(),
}));
...
...
@@ -207,6 +211,7 @@ flutter_tools:lib/''');
depFilePath:
anyNamed
(
'depFilePath'
),
packagesPath:
anyNamed
(
'packagesPath'
),
mainPath:
anyNamed
(
'mainPath'
),
linkPlatformKernelIn:
false
,
)).
thenAnswer
((
Invocation
_
)
async
{
return
const
CompilerOutput
(
'example'
,
0
,
<
Uri
>[]);
});
...
...
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