diff --git a/pkg/dev_compiler/bin/dartdevc.dart b/pkg/dev_compiler/bin/dartdevc.dart index 276320df461..86f169513f4 100755 --- a/pkg/dev_compiler/bin/dartdevc.dart +++ b/pkg/dev_compiler/bin/dartdevc.dart @@ -56,11 +56,7 @@ class _CompilerWorker extends AsyncWorkerLoop { /// Build a map of uris to digests. final inputDigests = >{}; for (var input in request.inputs) { - var uri = Uri.parse(input.path); - if (uri.scheme.isEmpty) { - uri = Uri.parse('file://${input.path}'); - } - inputDigests[uri] = input.digest; + inputDigests[Uri.base.resolve(input.path)] = input.digest; } lastResult = await runZoned( diff --git a/utils/bazel/kernel_worker.dart b/utils/bazel/kernel_worker.dart index 3ca17295238..e8d91fca039 100644 --- a/utils/bazel/kernel_worker.dart +++ b/utils/bazel/kernel_worker.dart @@ -250,11 +250,7 @@ Future computeKernel(List args, /// Build a map of uris to digests. final inputDigests = >{}; for (var input in inputs) { - var uri = Uri.parse(input.path); - if (uri.scheme.isEmpty) { - uri = Uri.parse('file://${input.path}'); - } - inputDigests[uri] = input.digest; + inputDigests[_toUri(input.path)] = input.digest; } // TODO(sigmund): add support for experiments with the incremental compiler.