mirror of
https://github.com/dart-lang/sdk
synced 2024-10-05 06:28:01 +00:00
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:
parent
fcb02325cc
commit
048d396f1b
|
@ -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 {
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue