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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 args.add("--snapshot=$tempDir/out.aotsnapshot"); | 504 args.add("--snapshot=$tempDir/out.aotsnapshot"); |
505 args.add("--use-blobs"); | 505 args.add("--use-blobs"); |
506 } else { | 506 } else { |
507 args.add("--snapshot=$tempDir/out.S"); | 507 args.add("--snapshot=$tempDir/out.S"); |
508 } | 508 } |
509 | 509 |
510 if (_isAndroid && _isArm) { | 510 if (_isAndroid && _isArm) { |
511 args.add('--no-sim-use-hardfp'); | 511 args.add('--no-sim-use-hardfp'); |
512 } | 512 } |
513 | 513 |
| 514 if (_configuration.isMinified) { |
| 515 args.add('--obfuscate'); |
| 516 } |
| 517 |
514 args.addAll(arguments); | 518 args.addAll(arguments); |
515 | 519 |
516 return Command.compilation('precompiler', tempDir, bootstrapDependencies(), | 520 return Command.compilation('precompiler', tempDir, bootstrapDependencies(), |
517 exec, args, environmentOverrides, | 521 exec, args, environmentOverrides, |
518 alwaysCompile: !_useSdk); | 522 alwaysCompile: !_useSdk); |
519 } | 523 } |
520 | 524 |
521 Command computeAssembleCommand(String tempDir, List arguments, | 525 Command computeAssembleCommand(String tempDir, List arguments, |
522 Map<String, String> environmentOverrides) { | 526 Map<String, String> environmentOverrides) { |
523 String cc, shared, ldFlags; | 527 String cc, shared, ldFlags; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 List<String> computeRuntimeArguments( | 757 List<String> computeRuntimeArguments( |
754 RuntimeConfiguration runtimeConfiguration, | 758 RuntimeConfiguration runtimeConfiguration, |
755 TestInformation info, | 759 TestInformation info, |
756 List<String> vmOptions, | 760 List<String> vmOptions, |
757 List<String> sharedOptions, | 761 List<String> sharedOptions, |
758 List<String> originalArguments, | 762 List<String> originalArguments, |
759 CommandArtifact artifact) { | 763 CommandArtifact artifact) { |
760 return <String>[]; | 764 return <String>[]; |
761 } | 765 } |
762 } | 766 } |
OLD | NEW |