Make sure to pass strong mode options down to gen_snapshot (#14118)

This commit is contained in:
Vyacheslav Egorov
2018-01-16 15:38:29 +01:00
committed by GitHub
parent 299ddb4320
commit d9fd4d6f49

View File

@@ -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);