Unverified Commit a69af990 authored by Alexander Markov's avatar Alexander Markov Committed by GitHub

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

parent 373e510c
......@@ -334,6 +334,7 @@ Future<String> _buildAotSnapshot(
mainPath: mainPath,
extraFrontEndOptions: extraFrontEndOptions,
linkPlatformKernelIn : true,
aot : true,
);
}
......
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment