Pass --aot option to front-end server when generating kernel for AOT build (#13342)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user