Only build target compiler for TARGET_ARCH
Change-Id: Iad4867a358dc273799396ec1c3a76af32b56f5b6
diff --git a/src/compiler.cc b/src/compiler.cc
index 36e8d28..aad6ad3 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -245,10 +245,10 @@
instruction_set = kArm;
}
- // Capitalize the instruction set, because that's what we do in the build system.
+ // Lower case the instruction set, because that's what we do in the build system.
std::string instruction_set_name(ToStr<InstructionSet>(instruction_set).str());
for (size_t i = 0; i < instruction_set_name.size(); ++i) {
- instruction_set_name[i] = toupper(instruction_set_name[i]);
+ instruction_set_name[i] = tolower(instruction_set_name[i]);
}
// Bad things happen if we pull in the libartd-compiler to a libart dex2oat or vice versa,