Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

fix android configuration in case of target triple = linux-androideabi #2

Merged
merged 1 commit into from
Jan 23, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/Target/TargetLibraryInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,12 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T,
// OS X or iOS.
switch (T.getOS()) {
case Triple::Linux:
//On android, exp10, exp10f, exp10l are not available on Bionic of Android
if (T.getEnvironment() == llvm::Triple::Android) {
TLI.setUnavailable(LibFunc::exp10);
TLI.setUnavailable(LibFunc::exp10f);
TLI.setUnavailable(LibFunc::exp10l);
}
break;
case Triple::MacOSX:
TLI.setUnavailable(LibFunc::exp10l);
Expand Down