From ba8014df04b9727f783fc6f92d874c54a9e51191 Mon Sep 17 00:00:00 2001 From: Martin Kustermann Date: Tue, 12 Dec 2017 16:20:54 +0000 Subject: [PATCH] Ensure we pass the kernel file to dart_bootstrap when using cfe (in batch and non-batch mode) Issue https://github.com/dart-lang/sdk/issues/31585 Change-Id: Ibca196103b868177afa0ab9e15c913bbea2474ed Reviewed-on: https://dart-review.googlesource.com/28760 Reviewed-by: Vyacheslav Egorov --- tools/testing/dart/compiler_configuration.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/dart/compiler_configuration.dart b/tools/testing/dart/compiler_configuration.dart index 5b4476b90c9..7280d08362f 100644 --- a/tools/testing/dart/compiler_configuration.dart +++ b/tools/testing/dart/compiler_configuration.dart @@ -710,8 +710,9 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration if (_isStrong) { args.add('--strong'); - args.addAll(arguments.where((name) => !name.endsWith('.dart'))); - args.add(tempKernelFile(tempDir)); + } + if (useDfe) { + args.addAll(_replaceDartFiles(arguments, tempKernelFile(tempDir))); } else { args.addAll(arguments); }