Index: pkg/analyzer_cli/lib/src/build_mode.dart |
diff --git a/pkg/analyzer_cli/lib/src/build_mode.dart b/pkg/analyzer_cli/lib/src/build_mode.dart |
index f6b3ddde3c71ddc22ed04c9de57e8d5824e681e3..879ec69787978c60890d288998a0181102681244 100644 |
--- a/pkg/analyzer_cli/lib/src/build_mode.dart |
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart |
@@ -257,7 +257,7 @@ class BuildMode { |
Driver.createAnalysisOptionsForCommandLineOptions(options); |
directorySdk.useSummary = !options.buildSummaryOnlyAst; |
sdk = directorySdk; |
- sdkBundle = directorySdk.getSummarySdkBundle(); |
+ sdkBundle = directorySdk.getSummarySdkBundle(options.strongMode); |
} |
// In AST mode include SDK bundle to avoid parsing SDK sources. |