mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
When doing flutter test use batch compiler and link platform in. (#14983)
This is to fix #14931.
This commit is contained in:
parent
ae9fdefa4f
commit
9a9aed191d
|
@ -205,9 +205,9 @@ class _FlutterPlatform extends PlatformPlugin {
|
|||
if (previewDart2) {
|
||||
mainDart = await compile(
|
||||
sdkRoot: artifacts.getArtifactPath(Artifact.flutterPatchedSdkPath),
|
||||
incrementalCompilerByteStorePath: '' /* not null is enough */,
|
||||
mainPath: listenerFile.path,
|
||||
packagesPath: PackageMap.globalPackagesPath,
|
||||
linkPlatformKernelIn: true
|
||||
);
|
||||
|
||||
if (mainDart == null) {
|
||||
|
|
Loading…
Reference in a new issue