Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2665)

Unified Diff: pkg/analyzer_cli/lib/src/build_mode.dart

Issue 1830773004: Fix for build mode SDK options. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1db869018fa35e0147be717a66afe3a28659776a..a2c921881175b9269f0c1886bb6a985b612e4703 100644
--- a/pkg/analyzer_cli/lib/src/build_mode.dart
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart
@@ -127,6 +127,9 @@ class BuildMode {
void _createContext() {
DirectoryBasedDartSdk sdk =
new DirectoryBasedDartSdk(new JavaFile(options.dartSdkPath));
+ sdk.analysisOptions =
+ Driver.createAnalysisOptionsForCommandLineOptions(options);
+ sdk.useSummary = true;
// Read the summaries.
SummaryDataStore summaryDataStore =
@@ -145,7 +148,6 @@ class BuildMode {
context, options, (AnalysisOptionsImpl contextOptions) {});
// Configure using summaries.
- sdk.useSummary = true;
context.typeProvider = sdk.context.typeProvider;
context.resultProvider =
new InputPackagesResultProvider(context, summaryDataStore);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698