| Index: lib/src/compiler.dart
|
| diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
|
| index 0fee0d2da3b91e348a92448047126d7c4e231d01..3f8d615145ef49531e00c566215eaebe7f2a2eb7 100644
|
| --- a/lib/src/compiler.dart
|
| +++ b/lib/src/compiler.dart
|
| @@ -61,9 +61,13 @@ class Compiler {
|
| options.outputDir != null ? new Path(options.outputDir) : mainDir;
|
|
|
| // Normalize paths - all should be relative or absolute paths.
|
| - if (_mainPath.isAbsolute || basePath.isAbsolute || outputPath.isAbsolute) {
|
| + bool anyAbsolute = _mainPath.isAbsolute || basePath.isAbsolute ||
|
| + outputPath.isAbsolute;
|
| + bool allAbsolute = _mainPath.isAbsolute && basePath.isAbsolute &&
|
| + outputPath.isAbsolute;
|
| + if (anyAbsolute && !allAbsolute) {
|
| if (currentDir == null) {
|
| - messages.error('internal error: could not normalize paths. Please make'
|
| + messages.error('internal error: could not normalize paths. Please make '
|
| 'the input, base, and output paths all absolute or relative, or '
|
| 'specify "currentDir" to the Compiler constructor', null);
|
| return;
|
|
|