Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Unified Diff: lib/src/compiler/compiler.dart

Issue 1887163002: Fix DDC build (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler/compiler.dart
diff --git a/lib/src/compiler/compiler.dart b/lib/src/compiler/compiler.dart
index 31fb4999b5caeaf1c9078b60e956191f8fa83893..86009d52dfc97ea2403591f842d583e85ad726ea 100644
--- a/lib/src/compiler/compiler.dart
+++ b/lib/src/compiler/compiler.dart
@@ -54,10 +54,9 @@ class ModuleCompiler {
for (var sourcePath in unit.sources) {
String sourceUri = sourcePath;
- if (path.isRelative(sourcePath)) {
- sourceUri = path.absolute(sourceUri);
+ if (path.isAbsolute(sourcePath)) {
+ sourceUri = path.toUri(sourcePath).toString();
}
- sourceUri = path.toUri(sourceUri).toString();
Source source = context.sourceFactory.forUri(sourceUri);
if (source == null) {
throw new AnalysisException('could not create a source for $sourcePath.'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698