Index: tools/testing/dart/compiler_configuration.dart |
diff --git a/tools/testing/dart/compiler_configuration.dart b/tools/testing/dart/compiler_configuration.dart |
index 830f4401a1a83676040486518bc657745ca3b958..4b5be7d19e9a3911d971ee5d6734e9be0cda6277 100644 |
--- a/tools/testing/dart/compiler_configuration.dart |
+++ b/tools/testing/dart/compiler_configuration.dart |
@@ -609,9 +609,8 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration { |
if (!useBlobs) { |
commands.add(this.computeAssembleCommand(tempDir, buildDir, CommandBuilder.instance, |
arguments, environmentOverrides)); |
- // This step reduces the amount of space needed to run the precompilation |
- // tests by 60%. |
- commands.add(commandBuilder.getDeleteCommand("$tempDir/out.S")); |
+ commands.add(this.computeRemoveAssemblyCommand(tempDir, buildDir, |
+ CommandBuilder.instance, arguments, environmentOverrides)); |
} |
return new CommandArtifact(commands, '$tempDir', 'application/dart-precompiled'); |
} |
@@ -698,6 +697,27 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration { |
bootstrapDependencies(buildDir), exec, args, environmentOverrides); |
} |
+ // This step reduces the amount of space needed to run the precompilation |
+ // tests by 60%. |
+ CompilationCommand computeRemoveAssemblyCommand( |
+ String tempDir, |
+ String buildDir, |
+ CommandBuilder commandBuilder, |
+ List arguments, |
+ Map<String, String> environmentOverrides) { |
+ var exec = 'rm'; |
+ var args = ['$tempDir/out.S']; |
+ |
+ return commandBuilder.getCompilationCommand( |
+ 'remove_assembly', |
+ tempDir, |
+ !useSdk, |
+ bootstrapDependencies(buildDir), |
+ exec, |
+ args, |
+ environmentOverrides); |
+ } |
+ |
List<String> filterVmOptions(List<String> vmOptions) { |
var filtered = new List.from(vmOptions); |
filtered.removeWhere( |