Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 'command.dart'; | 7 import 'command.dart'; |
| 8 import 'configuration.dart'; | 8 import 'configuration.dart'; |
| 9 import 'path.dart'; | 9 import 'path.dart'; |
| 10 import 'runtime_configuration.dart'; | 10 import 'runtime_configuration.dart'; |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 276 static Map<String, List<Uri>> _bootstrapDependenciesCache = {}; | 276 static Map<String, List<Uri>> _bootstrapDependenciesCache = {}; |
| 277 | 277 |
| 278 Dart2xCompilerConfiguration(this.moniker, Configuration configuration) | 278 Dart2xCompilerConfiguration(this.moniker, Configuration configuration) |
| 279 : super._subclass(configuration); | 279 : super._subclass(configuration); |
| 280 | 280 |
| 281 String computeCompilerPath() { | 281 String computeCompilerPath() { |
| 282 var prefix = 'sdk/bin'; | 282 var prefix = 'sdk/bin'; |
| 283 var suffix = executableScriptSuffix; | 283 var suffix = executableScriptSuffix; |
| 284 | 284 |
| 285 if (_isHostChecked) { | 285 if (_isHostChecked) { |
| 286 if (_useSdk) { | |
| 287 throw "--host-checked and --use-sdk cannot be used together"; | |
|
Johnni Winther
2017/07/28 15:54:19
Why not? Is it short term?
Siggi Cherem (dart-lang)
2017/07/28 16:45:05
Added a note in the code.
I actually tried implem
| |
| 288 } | |
| 286 // The script dart2js_developer is not included in the | 289 // The script dart2js_developer is not included in the |
| 287 // shipped SDK, that is the script is not installed in | 290 // shipped SDK, that is the script is not installed in |
| 288 // "$buildDir/dart-sdk/bin/" | 291 // "$buildDir/dart-sdk/bin/" |
| 289 return '$prefix/dart2js_developer$suffix'; | 292 return '$prefix/dart2js_developer$suffix'; |
| 290 } | 293 } |
| 291 | 294 |
| 292 if (_useSdk) { | 295 if (_useSdk) { |
| 293 prefix = '${_configuration.buildDirectory}/dart-sdk/bin'; | 296 prefix = '${_configuration.buildDirectory}/dart-sdk/bin'; |
| 294 } | 297 } |
| 295 return '$prefix/dart2js$suffix'; | 298 return '$prefix/dart2js$suffix'; |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 741 List<String> computeRuntimeArguments( | 744 List<String> computeRuntimeArguments( |
| 742 RuntimeConfiguration runtimeConfiguration, | 745 RuntimeConfiguration runtimeConfiguration, |
| 743 TestInformation info, | 746 TestInformation info, |
| 744 List<String> vmOptions, | 747 List<String> vmOptions, |
| 745 List<String> sharedOptions, | 748 List<String> sharedOptions, |
| 746 List<String> originalArguments, | 749 List<String> originalArguments, |
| 747 CommandArtifact artifact) { | 750 CommandArtifact artifact) { |
| 748 return <String>[]; | 751 return <String>[]; |
| 749 } | 752 } |
| 750 } | 753 } |
| OLD | NEW |