When doing flutter test use batch compiler and link platform in. (#14983)
This is to fix #14931.
This commit is contained in:
committed by
GitHub
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) {
|
||||
|
||||
Reference in New Issue
Block a user