| Index: tools/testing/dart/compiler_configuration.dart
|
| diff --git a/tools/testing/dart/compiler_configuration.dart b/tools/testing/dart/compiler_configuration.dart
|
| index 6cada5b21c9342eb8a4686011569fb12d3951ea8..d0e6f5f444ad02c68cd67c3c56f7e8c084c9c4ad 100644
|
| --- a/tools/testing/dart/compiler_configuration.dart
|
| +++ b/tools/testing/dart/compiler_configuration.dart
|
| @@ -369,12 +369,10 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration {
|
| Map<String, String> environmentOverrides) {
|
| var exec = "$buildDir/dart_bootstrap";
|
| var args = new List();
|
| + args.add("--snapshot=$tempDir");
|
| args.add("--snapshot-kind=app-aot");
|
| if (useBlobs) {
|
| - args.add("--snapshot=$tempDir/out.aotsnapshot");
|
| args.add("--use-blobs");
|
| - } else {
|
| - args.add("--snapshot=$tempDir/out.S");
|
| }
|
| if (isAndroid && arch == 'arm') {
|
| args.add('--no-sim-use-hardfp');
|
| @@ -392,13 +390,15 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration {
|
| List arguments,
|
| Map<String, String> environmentOverrides) {
|
|
|
| - var cc, shared;
|
| + var cc, shared, libname;
|
| if (Platform.isLinux) {
|
| cc = 'gcc';
|
| shared = '-shared';
|
| + libname = 'libprecompiled.so';
|
| } else if (Platform.isMacOS) {
|
| cc = 'clang';
|
| shared = '-dynamiclib';
|
| + libname = 'libprecompiled.dylib';
|
| } else {
|
| throw "Platform not supported: ${Platform.operatingSystem}";
|
| }
|
| @@ -430,8 +430,8 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration {
|
| var args = (cc_flags != null) ? [ shared, cc_flags ] : [ shared ];
|
| args.addAll([
|
| '-o',
|
| - '$tempDir/out.aotsnapshot',
|
| - '$tempDir/out.S'
|
| + '$tempDir/$libname',
|
| + '$tempDir/snapshot.S'
|
| ]);
|
|
|
| return commandBuilder.getCompilationCommand('assemble', tempDir, !useSdk,
|
| @@ -447,7 +447,7 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration {
|
| List arguments,
|
| Map<String, String> environmentOverrides) {
|
| var exec = 'rm';
|
| - var args = ['$tempDir/out.S'];
|
| + var args = ['$tempDir/snapshot.S'];
|
|
|
| return commandBuilder.getCompilationCommand(
|
| 'remove_assembly',
|
| @@ -532,7 +532,7 @@ class Dart2AppSnapshotCompilerConfiguration extends CompilerConfiguration {
|
| Map<String, String> environmentOverrides) {
|
| var exec = "$buildDir/dart_bootstrap";
|
| var args = new List();
|
| - args.add("--snapshot=$tempDir/out.jitsnapshot");
|
| + args.add("--snapshot=$tempDir");
|
| args.add("--snapshot-kind=app-after-run");
|
| args.addAll(arguments);
|
|
|
| @@ -592,7 +592,7 @@ class Dart2AppJitSnapshotCompilerConfiguration extends Dart2AppSnapshotCompilerC
|
| Map<String, String> environmentOverrides) {
|
| var exec = "$buildDir/dart";
|
| var args = new List();
|
| - args.add("--snapshot=$tempDir/out.jitsnapshot");
|
| + args.add("--snapshot=$tempDir");
|
| args.add("--snapshot-kind=app-jit-after-run");
|
| if (useBlobs) {
|
| args.add("--use-blobs");
|
|
|