Fix for analyzer-cli and the new SummaryBasedDartSdk 'strongMode' parameter.

I broke the build :-(

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/1979193010 .
This commit is contained in:
Konstantin Shcheglov 2016-05-16 15:03:35 -07:00
parent fcb02325cc
commit 048d396f1b
2 changed files with 4 additions and 3 deletions

View file

@ -245,8 +245,8 @@ class BuildMode {
DartSdk sdk;
PackageBundle sdkBundle;
if (options.dartSdkSummaryPath != null) {
SummaryBasedDartSdk summarySdk =
new SummaryBasedDartSdk(options.dartSdkSummaryPath);
SummaryBasedDartSdk summarySdk = new SummaryBasedDartSdk(
options.dartSdkSummaryPath, options.strongMode);
sdk = summarySdk;
sdkBundle = summarySdk.bundle;
} else {

View file

@ -613,7 +613,8 @@ class Driver implements CommandLineStarter {
void _setupSdk(CommandLineOptions options, bool hasEmbedder) {
if (sdk == null) {
if (options.dartSdkSummaryPath != null) {
sdk = new SummaryBasedDartSdk(options.dartSdkSummaryPath);
sdk = new SummaryBasedDartSdk(
options.dartSdkSummaryPath, options.strongMode);
} else {
String dartSdkPath = options.dartSdkPath;
DirectoryBasedDartSdk directorySdk =