Make sure to pass strong mode options down to gen_snapshot (#14118)
This commit is contained in:
committed by
GitHub
parent
299ddb4320
commit
d9fd4d6f49
@@ -346,6 +346,13 @@ Future<String> _buildAotSnapshot(
|
||||
printError('Compiler terminated unexpectedly.');
|
||||
return null;
|
||||
}
|
||||
|
||||
if (strongMode) {
|
||||
genSnapshotCmd.addAll(<String>[
|
||||
'--reify-generic-functions',
|
||||
'--strong',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
genSnapshotCmd.add(mainPath);
|
||||
|
||||
Reference in New Issue
Block a user