diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-01-10 19:47:42 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-01-10 19:47:42 +0000 |
commit | b43550bf1bd944a16cdae9703cb1c2049b04e6bd (patch) | |
tree | 0faae4a107f3d29d412e4223d5f8cd0a814f9836 /lib/Driver/ToolChains.cpp | |
parent | 6e6f93a1f16d9804db79390382e9d1f6322cdbfd (diff) |
Add support for the androideabi environment to our triple support, and
for the arm-linux-androideabi triple in particular.
Also use this to do a better job of selecting soft FP settings.
Patch by Evgeniy Stepanov.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 3034ede2ae..3dcdf13f00 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -1164,7 +1164,10 @@ Generic_GCC::GCCInstallationDetector::GCCInstallationDetector(const Driver &D) SmallVectorImpl<StringRef> &Triples) { if (HostArch == llvm::Triple::arm || HostArch == llvm::Triple::thumb) { static const char *const ARMLibDirs[] = { "/lib" }; - static const char *const ARMTriples[] = { "arm-linux-gnueabi" }; + static const char *const ARMTriples[] = { + "arm-linux-gnueabi", + "arm-linux-androideabi" + }; LibDirs.append(ARMLibDirs, ARMLibDirs + llvm::array_lengthof(ARMLibDirs)); Triples.append(ARMTriples, ARMTriples + llvm::array_lengthof(ARMTriples)); } else if (HostArch == llvm::Triple::x86_64) { |