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

Commit fb494b7

Browse files
committed
Merge pull request #2 from aydinkim/rust-llvm-2013-12-27
fix android configuration in case of target triple = linux-androideabi
2 parents 8841dce + 535989a commit fb494b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Target/TargetLibraryInfo.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,12 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T,
580580
// OS X or iOS.
581581
switch (T.getOS()) {
582582
case Triple::Linux:
583+
//On android, exp10, exp10f, exp10l are not available on Bionic of Android
584+
if (T.getEnvironment() == llvm::Triple::Android) {
585+
TLI.setUnavailable(LibFunc::exp10);
586+
TLI.setUnavailable(LibFunc::exp10f);
587+
TLI.setUnavailable(LibFunc::exp10l);
588+
}
583589
break;
584590
case Triple::MacOSX:
585591
TLI.setUnavailable(LibFunc::exp10l);

0 commit comments

Comments
 (0)