Index: pkg/analyzer_cli/lib/src/options.dart |
diff --git a/pkg/analyzer_cli/lib/src/options.dart b/pkg/analyzer_cli/lib/src/options.dart |
index ae8466cd017b5dd734fe94e5765d0e28a3b22268..9151f6bd293f7a60eced3f08ad6f79dfc65a2c8e 100644 |
--- a/pkg/analyzer_cli/lib/src/options.dart |
+++ b/pkg/analyzer_cli/lib/src/options.dart |
@@ -193,7 +193,7 @@ class CommandLineOptions { |
[printAndFail(String msg) = printAndFail]) { |
CommandLineOptions options = _parse(args); |
// Check SDK. |
- { |
+ if (!options.buildModePersistentWorker) { |
// Infer if unspecified. |
if (options.dartSdkPath == null) { |
Directory sdkDir = getSdkDir(args); |