Chromium Code Reviews| Index: runtime/bin/vmservice/client/build.dart |
| =================================================================== |
| --- runtime/bin/vmservice/client/build.dart (revision 30528) |
| +++ runtime/bin/vmservice/client/build.dart (working copy) |
| @@ -13,10 +13,18 @@ |
| compileToJs(_) { |
| print("Running dart2js"); |
| + var dart_path = Platform.executable; |
|
Bob Nystrom
2013/11/21 21:23:53
Drive-by comment: The style guide for variables in
|
| + var bin_path = dart_path.substring(0, dart_path.lastIndexOf(Platform.pathSeparator)); |
| + var dart2js_path = "$bin_path${Platform.pathSeparator}dart2js"; |
| var result = |
| - Process.runSync('dart2js', |
| + Process.runSync(dart2js_path, |
| [ '--minify', '-o', 'out/web/index.html_bootstrap.dart.js', |
| 'out/web/index.html_bootstrap.dart'], runInShell: true); |
| print(result.stdout); |
| + print(result.stderr); |
| + if (result.exitCode != 0) { |
| + print("Running dart2js failed."); |
| + exit(result.exitCode); |
| + } |
| print("Done"); |
| } |