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:
Martin Kustermann 2017-12-12 14:26:46 +00:00
parent 96c3b2a24d
commit 891e591415

View file

@ -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(