Index: pkg/analyzer_cli/lib/src/driver.dart |
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart |
index f3016d56ba06af436d9433795b820e32d98233c1..a05f81ed877110f0ba1f9b0b7261338319a05244 100644 |
--- a/pkg/analyzer_cli/lib/src/driver.dart |
+++ b/pkg/analyzer_cli/lib/src/driver.dart |
@@ -245,7 +245,7 @@ class Driver implements CommandLineStarter { |
ErrorSeverity _buildModeAnalyze(CommandLineOptions options) { |
return _analyzeAllTag.makeCurrentWhile(() { |
if (options.buildModePersistentWorker) { |
- new WorkerLoop.std().run(); |
+ new WorkerLoop.std(dartSdkPath: options.dartSdkPath).run(); |
} else { |
return new BuildMode(options, stats).analyze(); |
} |