aboutsummaryrefslogtreecommitdiff
path: root/cmake/config-ix.cmake
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2013-02-07 00:21:34 +0000
committerOwen Anderson <resistor@mac.com>2013-02-07 00:21:34 +0000
commitec643abe6903284fc9ae7b6d9ae5e0b4ad40ad28 (patch)
treefed80233a33989203470c21cfae7ba95096849e7 /cmake/config-ix.cmake
parent42258e0ea8781dd29cae4b1a6eb54d8c70dcea0b (diff)
Conditionalize constant folding of math intrinsics on the availability of an implementation on the host. This is a little bit unfortunate, but until someone decides to implement a full libm for APFloat, we don't have a better way to get this functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/config-ix.cmake')
-rwxr-xr-xcmake/config-ix.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index b079a0738b..f077ecaf57 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -119,6 +119,12 @@ check_symbol_exists(isnan math.h HAVE_ISNAN_IN_MATH_H)
check_symbol_exists(ceilf math.h HAVE_CEILF)
check_symbol_exists(floorf math.h HAVE_FLOORF)
check_symbol_exists(fmodf math.h HAVE_FMODF)
+check_symbol_exists(log "math.h cmath" HAVE_LOG)
+check_symbol_exists(log2 "math.h cmath" HAVE_LOG2)
+check_symbol_exists(log10 "math.h cmath" HAVE_LOG10)
+check_symbol_exists(exp "math.h cmath" HAVE_EXP)
+check_symbol_exists(exp2 "math.h cmath" HAVE_EXP2)
+check_symbol_exists(exp10 "math.h cmath" HAVE_EXP10)
if( HAVE_SETJMP_H )
check_symbol_exists(longjmp setjmp.h HAVE_LONGJMP)
check_symbol_exists(setjmp setjmp.h HAVE_SETJMP)