| Index: pkg/kernel/bin/dartk.dart
|
| diff --git a/pkg/kernel/bin/dartk.dart b/pkg/kernel/bin/dartk.dart
|
| index b8666a43c45b26b7c20d994cfb14075b23e8981e..d14dbaa2cc92a6952c1e98c1e61c458f9f672d9a 100755
|
| --- a/pkg/kernel/bin/dartk.dart
|
| +++ b/pkg/kernel/bin/dartk.dart
|
| @@ -362,9 +362,13 @@ Future<CompilerOutcome> batchMain(
|
| }
|
|
|
| // Apply target-specific transformations.
|
| - if (target != null && options['link'] && canContinueCompilation) {
|
| - target.transformProgram(program);
|
| + if (target != null && canContinueCompilation) {
|
| + target.performModularTransformations(program);
|
| runVerifier();
|
| + if (options['link']) {
|
| + target.performGlobalTransformations(program);
|
| + runVerifier();
|
| + }
|
| }
|
|
|
| if (options['no-output']) {
|
|
|