Index: tools/testing/dart/compiler_configuration.dart |
diff --git a/tools/testing/dart/compiler_configuration.dart b/tools/testing/dart/compiler_configuration.dart |
index 161252a17841a0569f90098f660039ae6d641b04..7fcf990ca5a88e526553618c57990e7bdb3cd5fc 100644 |
--- a/tools/testing/dart/compiler_configuration.dart |
+++ b/tools/testing/dart/compiler_configuration.dart |
@@ -374,11 +374,15 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration { |
cc_flags = "-m64"; |
} else if (arch == 'simarm64') { |
cc_flags = "-m64"; |
+ } else if (arch == 'ia32') { |
+ cc_flags = "-m32"; |
} else if (arch == 'simarm') { |
cc_flags = "-m32"; |
} else if (arch == 'simmips') { |
cc_flags = "-m32"; |
} else if (arch == 'arm') { |
+ // TODO: If we're not using "--use_blobs" we need to use the arm cross |
+ // compiler instead of just 'gcc'. |
cc_flags = ""; |
} else if (arch == 'mips') { |
cc_flags = "-EL"; |
@@ -387,13 +391,13 @@ class PrecompilerCompilerConfiguration extends CompilerConfiguration { |
} |
var exec = cc; |
- var args = [ |
- shared, |
- cc_flags, |
+ var args = [ shared ]; |
+ if (cc_flags != null && cc_flags.length > 0) args.add(cc_flags); |
+ args.addAll([ |
'-o', |
'$tempDir/$libname', |
'$tempDir/precompiled.S' |
- ]; |
+ ]); |
return commandBuilder.getCompilationCommand('assemble', tempDir, !useSdk, |
bootstrapDependencies(buildDir), exec, args, environmentOverrides); |