Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: tools/testing/dart/compiler_configuration.dart

Issue 628363002: Modify dartanalyzer scripts to look more like dart2js scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove editor/tools/analyzer. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« sdk/bin/dartanalyzer ('K') | « sdk/bin/dartanalyzer.bat ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c9e5af179ae948e6bb33854f0cb0a3fa7ac00c85 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.
+ // return '$prefix/dartanalyzer_developer$suffix';
ricow1 2014/10/07 06:03:08 No commented out code please Additionally, for wh
Paul Berry 2014/10/07 23:39:17 Done.
+ }
+ if (useSdk) {
+ prefix = '$buildDir/dart-sdk/bin';
+ }
+ return '$prefix/dartanalyzer$suffix';
+ }
}
« sdk/bin/dartanalyzer ('K') | « sdk/bin/dartanalyzer.bat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698