Pass --aot option to front-end server when generating kernel for AOT build (#13342)

This commit is contained in:
Alexander Markov
2017-12-04 16:57:44 -08:00
committed by GitHub
parent 373e510cbe
commit a69af9902c
2 changed files with 5 additions and 0 deletions

View File

@@ -334,6 +334,7 @@ Future<String> _buildAotSnapshot(
mainPath: mainPath,
extraFrontEndOptions: extraFrontEndOptions,
linkPlatformKernelIn : true,
aot : true,
);
}

View File

@@ -60,6 +60,7 @@ Future<String> compile(
{String sdkRoot,
String mainPath,
bool linkPlatformKernelIn : false,
bool aot : false,
List<String> extraFrontEndOptions,
String incrementalCompilerByteStorePath}) async {
final String frontendServer = artifacts.getArtifactPath(
@@ -77,6 +78,9 @@ Future<String> compile(
];
if (!linkPlatformKernelIn)
command.add('--no-link-platform');
if (aot) {
command.add('--aot');
}
if (incrementalCompilerByteStorePath != null) {
command.addAll(<String>[
'--incremental',