| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:io'; | 5 import 'dart:io'; |
| 6 | 6 |
| 7 import 'configuration.dart'; | 7 import 'configuration.dart'; |
| 8 import 'drt_updater.dart'; | 8 import 'drt_updater.dart'; |
| 9 import 'path.dart'; | 9 import 'path.dart'; |
| 10 import 'test_suite.dart'; | 10 import 'test_suite.dart'; |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 // Install the runtime if needed. | 555 // Install the runtime if needed. |
| 556 var updater = runtimeUpdater( | 556 var updater = runtimeUpdater( |
| 557 runtime, data["drt"] as String, data["dartium"] as String); | 557 runtime, data["drt"] as String, data["dartium"] as String); |
| 558 if (updater != null) { | 558 if (updater != null) { |
| 559 updater.update(); | 559 updater.update(); |
| 560 } | 560 } |
| 561 | 561 |
| 562 // Expand architectures. | 562 // Expand architectures. |
| 563 var architectures = data["arch"] as String; | 563 var architectures = data["arch"] as String; |
| 564 if (architectures == "all") { | 564 if (architectures == "all") { |
| 565 architectures = "ia32,x64,simarm,simarm64,simmips,simdbc64"; | 565 architectures = "ia32,x64,simarm,simarm64,simdbc64"; |
| 566 } | 566 } |
| 567 | 567 |
| 568 for (var architectureName in architectures.split(",")) { | 568 for (var architectureName in architectures.split(",")) { |
| 569 var architecture = Architecture.find(architectureName); | 569 var architecture = Architecture.find(architectureName); |
| 570 | 570 |
| 571 // Expand compilers. | 571 // Expand compilers. |
| 572 var compilers = data["compiler"] as String; | 572 var compilers = data["compiler"] as String; |
| 573 for (var compilerName in compilers.split(",")) { | 573 for (var compilerName in compilers.split(",")) { |
| 574 var compiler = Compiler.find(compilerName); | 574 var compiler = Compiler.find(compilerName); |
| 575 | 575 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 if (name == option.name) return option; | 770 if (name == option.name) return option; |
| 771 | 771 |
| 772 // Allow hyphens instead of underscores as the separator since they are | 772 // Allow hyphens instead of underscores as the separator since they are |
| 773 // more common for command line flags. | 773 // more common for command line flags. |
| 774 if (name == option.name.replaceAll("_", "-")) return option; | 774 if (name == option.name.replaceAll("_", "-")) return option; |
| 775 } | 775 } |
| 776 | 776 |
| 777 return null; | 777 return null; |
| 778 } | 778 } |
| 779 } | 779 } |
| OLD | NEW |