Skip to content

Commit ba8014d

Browse files
mkustermannmraleph
authored andcommitted
Ensure we pass the kernel file to dart_bootstrap when using cfe (in batch and non-batch mode)
Issue #31585 Change-Id: Ibca196103b868177afa0ab9e15c913bbea2474ed Reviewed-on: https://dart-review.googlesource.com/28760 Reviewed-by: Vyacheslav Egorov <[email protected]>
1 parent bb240a6 commit ba8014d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/testing/dart/compiler_configuration.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,9 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration
710710

711711
if (_isStrong) {
712712
args.add('--strong');
713-
args.addAll(arguments.where((name) => !name.endsWith('.dart')));
714-
args.add(tempKernelFile(tempDir));
713+
}
714+
if (useDfe) {
715+
args.addAll(_replaceDartFiles(arguments, tempKernelFile(tempDir)));
715716
} else {
716717
args.addAll(arguments);
717718
}

0 commit comments

Comments
 (0)