When doing flutter test use batch compiler and link platform in. (#14983)

This is to fix #14931.
This commit is contained in:
Alexander Aprelev 2018-02-28 12:54:30 -08:00 committed by GitHub
parent ae9fdefa4f
commit 9a9aed191d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {