OSDN Git Service

Set default dex2oat instruction set for x86-64 and ARM64.
authorIan Rogers <irogers@google.com>
Wed, 12 Mar 2014 18:51:02 +0000 (11:51 -0700)
committerIan Rogers <irogers@google.com>
Wed, 12 Mar 2014 18:51:02 +0000 (11:51 -0700)
Change-Id: I43062dfadb8a4f51304fd06f0105d6af81cf0331

dex2oat/dex2oat.cc

index cc78816..327d3fb 100644 (file)
@@ -738,8 +738,12 @@ static int dex2oat(int argc, char** argv) {
 
 #if defined(__arm__)
   InstructionSet instruction_set = kThumb2;
+#elif defined(__aarch64__)
+  InstructionSet instruction_set = kArm64;
 #elif defined(__i386__)
   InstructionSet instruction_set = kX86;
+#elif defined(__x86_64__)
+  InstructionSet instruction_set = kX86_64;
 #elif defined(__mips__)
   InstructionSet instruction_set = kMips;
 #else