| 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 library compiler_configuration; | 5 library compiler_configuration; |
| 6 | 6 |
| 7 import 'dart:io' show Platform; | 7 import 'dart:io' show Platform; |
| 8 | 8 |
| 9 import 'runtime_configuration.dart' show RuntimeConfiguration; | 9 import 'runtime_configuration.dart' show RuntimeConfiguration; |
| 10 | 10 |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 } | 558 } |
| 559 return new CommandArtifact(commands, '$tempDir', 'application/dart-precompil
ed'); | 559 return new CommandArtifact(commands, '$tempDir', 'application/dart-precompil
ed'); |
| 560 } | 560 } |
| 561 | 561 |
| 562 CompilationCommand computeCompilationCommand( | 562 CompilationCommand computeCompilationCommand( |
| 563 String tempDir, | 563 String tempDir, |
| 564 String buildDir, | 564 String buildDir, |
| 565 CommandBuilder commandBuilder, | 565 CommandBuilder commandBuilder, |
| 566 List arguments, | 566 List arguments, |
| 567 Map<String, String> environmentOverrides) { | 567 Map<String, String> environmentOverrides) { |
| 568 var exec = "$buildDir/dart_bootstrap"; | 568 var exec; |
| 569 if (isAndroid && arch == 'arm') { |
| 570 exec = "$buildDir/clang_x86/dart_bootstrap"; |
| 571 } else { |
| 572 exec = "$buildDir/dart_bootstrap"; |
| 573 } |
| 569 var args = new List(); | 574 var args = new List(); |
| 570 args.add("--snapshot-kind=app-aot"); | 575 args.add("--snapshot-kind=app-aot"); |
| 571 if (useBlobs) { | 576 if (useBlobs) { |
| 572 args.add("--snapshot=$tempDir/out.aotsnapshot"); | 577 args.add("--snapshot=$tempDir/out.aotsnapshot"); |
| 573 args.add("--use-blobs"); | 578 args.add("--use-blobs"); |
| 574 } else { | 579 } else { |
| 575 args.add("--snapshot=$tempDir/out.S"); | 580 args.add("--snapshot=$tempDir/out.S"); |
| 576 } | 581 } |
| 577 if (isAndroid && arch == 'arm') { | 582 if (isAndroid && arch == 'arm') { |
| 578 args.add('--no-sim-use-hardfp'); | 583 args.add('--no-sim-use-hardfp'); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 RuntimeConfiguration runtimeConfiguration, | 848 RuntimeConfiguration runtimeConfiguration, |
| 844 String buildDir, | 849 String buildDir, |
| 845 TestInformation info, | 850 TestInformation info, |
| 846 List<String> vmOptions, | 851 List<String> vmOptions, |
| 847 List<String> sharedOptions, | 852 List<String> sharedOptions, |
| 848 List<String> originalArguments, | 853 List<String> originalArguments, |
| 849 CommandArtifact artifact) { | 854 CommandArtifact artifact) { |
| 850 return <String>[]; | 855 return <String>[]; |
| 851 } | 856 } |
| 852 } | 857 } |
| OLD | NEW |