Fix building Fuchsia apps. (#7071)

Started failing at 0b737ac57b.
This commit is contained in:
P.Y. Laligand 2016-11-29 09:57:58 -08:00 committed by GitHub
parent f27b0611f4
commit f1938c60af

View file

@ -28,8 +28,15 @@ const List<String> _kRequiredOptions = const <String>[
_kOptionWorking,
];
Future<Null> main(List<String> args) async {
context[Logger] = new StdoutLogger();
void main(List<String> args) async {
AppContext executableContext = new AppContext();
executableContext.runInZone(() {
context[Logger] = new StdoutLogger();
return run(args);
});
}
Future<Null> run(List<String> args) async {
final ArgParser parser = new ArgParser()
..addOption(_kOptionPackages, help: 'The .packages file')
..addOption(_kOptionOutput, help: 'The generated flx file')