Teach the triple library about the androideabi environment.
Patch by Evgeniy Stepanov.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147871 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 8f58e70..732fca5 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -125,6 +125,7 @@
case GNUEABI: return "gnueabi";
case EABI: return "eabi";
case MachO: return "macho";
+ case ANDROIDEABI: return "androideabi";
}
return "<invalid>";
@@ -387,6 +388,8 @@
return GNU;
else if (EnvironmentName.startswith("macho"))
return MachO;
+ else if (EnvironmentName.startswith("androideabi"))
+ return ANDROIDEABI;
else
return UnknownEnvironment;
}