Index: pkg/compiler/lib/src/dart2js.dart |
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart |
index b82ad535387d5ae5c7e9a48398246c9700e7f365..f07af9d1b28d4a5e2743dbc529809f29f80245e3 100644 |
--- a/pkg/compiler/lib/src/dart2js.dart |
+++ b/pkg/compiler/lib/src/dart2js.dart |
@@ -471,7 +471,8 @@ Future<api.CompilationResult> compile(List<String> argv) { |
api.Diagnostic.INFO); |
} |
if (resolveOnly) { |
- if (resolutionInputs.contains(resolutionOutput)) { |
+ if (resolutionInputs != null && |
+ resolutionInputs.contains(resolutionOutput)) { |
helpAndFail("Resolution input '${resolutionOutput}' can't be used as " |
"resolution output. Use the '--out' option to specify another " |
"resolution output."); |
@@ -535,7 +536,7 @@ Future<api.CompilationResult> compile(List<String> argv) { |
packageConfig: packageConfig, |
packagesDiscoveryProvider: findPackages, |
resolutionInputs: resolutionInputs, |
- resolutionOutput: resolutionOutput, |
+ resolutionOutput: resolveOnly ? resolutionOutput: null, |
options: options, |
environment: environment); |
return compileFunc( |