Index: pkg/dev_compiler/lib/src/compiler/command.dart |
diff --git a/pkg/dev_compiler/lib/src/compiler/command.dart b/pkg/dev_compiler/lib/src/compiler/command.dart |
index 87b2a57e70a76cd8a409c715ca393a0e97aa5666..7d5e2121b9d3932d31e10c3dbd67c02352e2e61f 100644 |
--- a/pkg/dev_compiler/lib/src/compiler/command.dart |
+++ b/pkg/dev_compiler/lib/src/compiler/command.dart |
@@ -170,6 +170,7 @@ void _compile(ArgResults argResults, void printFn(Object obj)) { |
var file = new File(summaryPath); |
if (!file.existsSync() || |
_changed(file.readAsBytesSync(), module.summaryBytes)) { |
+ if (!file.parent.existsSync()) file.parent.createSync(recursive: true); |
file.writeAsBytesSync(module.summaryBytes); |
} |
} |