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