| Index: dart/frog/world.dart
|
| diff --git a/dart/frog/world.dart b/dart/frog/world.dart
|
| index 6457a77b6f2e92f5628fbecc07e711535967695b..5b652e45f55af552f62c904b32d4bcb58caf8635 100644
|
| --- a/dart/frog/world.dart
|
| +++ b/dart/frog/world.dart
|
| @@ -262,11 +262,13 @@ class World {
|
| return !hasErrors;
|
| }
|
|
|
| + /** Returns true if Leg handled the compilation job. */
|
| bool runLeg() {
|
| if (!options.enableLeg) return false;
|
| bool res = withTiming('try leg compile', () => leg.compile(this));
|
| if (!res && options.legOnly) {
|
| fatal("Leg could not compile ${options.dartScript}");
|
| + return true; // In --leg_only, always "handle" the compilation.
|
| }
|
| return res;
|
| }
|
|
|