mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 10:33:28 +00:00
Only compile to kernel for precompilation for -cdartkp or -dartkp --strong
Issue https://github.com/dart-lang/sdk/issues/31585 Change-Id: Ife12640a61513a0312fcfc3713f1a44f69c1ac9a Reviewed-on: https://dart-review.googlesource.com/28621 Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
This commit is contained in:
parent
96c3b2a24d
commit
891e591415
|
@ -574,14 +574,18 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration {
|
|||
List<String> arguments, Map<String, String> environmentOverrides) {
|
||||
var commands = <Command>[];
|
||||
|
||||
commands.add(computeCompileToKernelCommand(
|
||||
tempDir, arguments, environmentOverrides));
|
||||
if (useDfe) {
|
||||
commands.add(computeCompileToKernelCommand(
|
||||
tempDir, arguments, environmentOverrides));
|
||||
}
|
||||
|
||||
commands.add(
|
||||
computeDartBootstrapCommand(tempDir, arguments, environmentOverrides));
|
||||
|
||||
commands.add(computeRemoveKernelFileCommand(
|
||||
tempDir, arguments, environmentOverrides));
|
||||
if (useDfe) {
|
||||
commands.add(computeRemoveKernelFileCommand(
|
||||
tempDir, arguments, environmentOverrides));
|
||||
}
|
||||
|
||||
if (!_configuration.useBlobs) {
|
||||
commands.add(
|
||||
|
|
Loading…
Reference in a new issue