Chromium Code Reviews| Index: tools/testing/dart/compiler_configuration.dart |
| diff --git a/tools/testing/dart/compiler_configuration.dart b/tools/testing/dart/compiler_configuration.dart |
| index 20ab1c77163774da2d5fa9021a06c82e0e88c58b..e872e6176b676a228d4ccf8702a0c66a201b581b 100644 |
| --- a/tools/testing/dart/compiler_configuration.dart |
| +++ b/tools/testing/dart/compiler_configuration.dart |
| @@ -391,5 +391,22 @@ class DartBasedAnalyzerCompilerConfiguration |
| 'dart2analyzer', isDebug: isDebug, isChecked: isChecked, |
| isHostChecked: isHostChecked, useSdk: useSdk); |
| - String computeCompilerPath(String buildDir) => 'editor/tools/analyzer'; |
| + String computeCompilerPath(String buildDir) { |
| + var prefix = 'sdk/bin'; |
| + String suffix = executableScriptSuffix; |
| + if (isHostChecked) { |
| + // The script dartanalyzer_developer is not included in the |
| + // shipped SDK, that is the script is not installed in |
| + // "$buildDir/dart-sdk/bin/" |
| + // TODO(paulberry): the script dartanalyzer_developer currently |
| + // points to the wrong place (the Java-based analyzer). Once |
| + // this is fixed, we should run dartanalyzer_developer when in |
| + // isHostChecked mode. Additionally, we should throw an error |
| + // if both useSdk and isHostChecked are true. |
|
ahe
2014/10/15 08:44:54
Report an error?
ricow1
2014/10/15 11:12:34
+, just do it instead of the comment - it will be
Paul Berry
2014/10/16 00:16:03
Done.
|
| + } |
| + if (useSdk) { |
| + prefix = '$buildDir/dart-sdk/bin'; |
| + } |
| + return '$prefix/dartanalyzer$suffix'; |
| + } |
| } |