Skip to content

Commit 85a3804

Browse files
committed
---
yaml --- r: 345573 b: refs/heads/master c: 37a6fac h: refs/heads/master i: 345571: ea75cf9
1 parent 99515e5 commit 85a3804

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a567e61233ece1f3a4e2d9d281c934cd618eeccd
2+
refs/heads/master: 37a6fac5e12a45585fdf112f6719d64431fabbba
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/Driver/UnixToolChains.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,13 @@ toolchains::GenericUnix::constructInvocation(const LinkJobAction &job,
340340
}
341341

342342
std::string toolchains::Android::getTargetForLinker() const {
343-
// Explicitly set the linker target to "androideabi", as opposed to the
344-
// llvm::Triple representation of "armv7-none-linux-android".
345-
// This is the only ABI we currently support for Android.
346-
assert(getTriple().getArch() == llvm::Triple::arm &&
347-
getTriple().getSubArch() == llvm::Triple::SubArchType::ARMSubArch_v7 &&
348-
"Only armv7 targets are supported for Android");
349-
return "armv7-none-linux-androideabi";
343+
const llvm::Triple &T = getTriple();
344+
if (T.getArch() == llvm::Triple::arm &&
345+
T.getSubArch() == llvm::Triple::SubArchType::ARMSubArch_v7)
346+
// Explicitly set the linker target to "androideabi", as opposed to the
347+
// llvm::Triple representation of "armv7-none-linux-android".
348+
return "armv7-none-linux-androideabi";
349+
return T.str();
350350
}
351351

352352
bool toolchains::Android::shouldProvideRPathToLinker() const { return false; }

0 commit comments

Comments
 (0)