| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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:async'; | 5 import 'dart:async'; |
| 6 import 'dart:convert'; | 6 import 'dart:convert'; |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'compiler_configuration.dart'; | 9 import 'compiler_configuration.dart'; |
| 10 import 'http_server.dart'; | 10 import 'http_server.dart'; |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 print("-rflutter requires the flutter engine executable to " | 349 print("-rflutter requires the flutter engine executable to " |
| 350 "be specified using --flutter"); | 350 "be specified using --flutter"); |
| 351 isValid = false; | 351 isValid = false; |
| 352 } | 352 } |
| 353 | 353 |
| 354 if (runtime == Runtime.flutter && architecture != Architecture.x64) { | 354 if (runtime == Runtime.flutter && architecture != Architecture.x64) { |
| 355 isValid = false; | 355 isValid = false; |
| 356 print("-rflutter is applicable only for --arch=x64"); | 356 print("-rflutter is applicable only for --arch=x64"); |
| 357 } | 357 } |
| 358 | 358 |
| 359 if (compiler == Compiler.dartdevc && !useSdk) { | |
| 360 isValid = false; | |
| 361 print("--compiler dartdevc requires --use-sdk"); | |
| 362 } | |
| 363 | |
| 364 if (compiler == Compiler.dartdevc && !isStrong) { | 359 if (compiler == Compiler.dartdevc && !isStrong) { |
| 365 isValid = false; | 360 isValid = false; |
| 366 print("--compiler dartdevc requires --strong"); | 361 print("--compiler dartdevc requires --strong"); |
| 367 } | 362 } |
| 368 | 363 |
| 369 return isValid; | 364 return isValid; |
| 370 } | 365 } |
| 371 | 366 |
| 372 /// Starts global HTTP servers that serve the entire dart repo. | 367 /// Starts global HTTP servers that serve the entire dart repo. |
| 373 /// | 368 /// |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 | 732 |
| 738 case macos: | 733 case macos: |
| 739 return 'xcodebuild/'; | 734 return 'xcodebuild/'; |
| 740 } | 735 } |
| 741 | 736 |
| 742 throw "unreachable"; | 737 throw "unreachable"; |
| 743 } | 738 } |
| 744 | 739 |
| 745 String toString() => "System($name)"; | 740 String toString() => "System($name)"; |
| 746 } | 741 } |
| OLD | NEW |