1 From 0a727a9fe2f082a470c1e71c3b404f3a3b0e8f51 Mon Sep 17 00:00:00 2001 2 From: Logan Chien <loganchien (a] google.com> 3 Date: Fri, 17 Aug 2012 15:23:35 +0800 4 Subject: [PATCH] Add new triple to detect Android toolchain. 5 6 Add i686-linux-android and mipsel-linux-android to 7 detect the Android toolchain properly. 8 --- 9 llvm-3.1/tools/clang/lib/Driver/ToolChains.cpp | 6 +++++- 10 1 files changed, 5 insertions(+), 1 deletions(-) 11 12 diff --git a/llvm-3.1/tools/clang/lib/Driver/ToolChains.cpp b/llvm-3.1/tools/clang/lib/Driver/ToolChains.cpp 13 index 7f9ed9a..9b9c33e 100644 14 --- a/llvm-3.1/tools/clang/lib/Driver/ToolChains.cpp 15 +++ b/llvm-3.1/tools/clang/lib/Driver/ToolChains.cpp 16 @@ -1206,6 +1206,7 @@ Generic_GCC::GCCInstallationDetector::GCCInstallationDetector( 17 "i686-pc-linux-gnu", 18 "i486-linux-gnu", 19 "i386-linux-gnu", 20 + "i686-linux-android", 21 "i686-redhat-linux", 22 "i586-redhat-linux", 23 "i386-redhat-linux", 24 @@ -1216,7 +1217,10 @@ Generic_GCC::GCCInstallationDetector::GCCInstallationDetector( 25 static const char *const MIPSLibDirs[] = { "/lib" }; 26 static const char *const MIPSTriples[] = { "mips-linux-gnu" }; 27 static const char *const MIPSELLibDirs[] = { "/lib" }; 28 - static const char *const MIPSELTriples[] = { "mipsel-linux-gnu" }; 29 + static const char *const MIPSELTriples[] = { 30 + "mipsel-linux-gnu", 31 + "mipsel-linux-android" 32 + }; 33 34 static const char *const PPCLibDirs[] = { "/lib32", "/lib" }; 35 static const char *const PPCTriples[] = { 36 -- 37 1.7.7.3 38 39