Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: rust-llvm-2013-12-27
Choose a base branch
from
Open
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