From ec643abe6903284fc9ae7b6d9ae5e0b4ad40ad28 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 7 Feb 2013 00:21:34 +0000 Subject: 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 --- cmake/config-ix.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmake') 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) -- cgit v1.2.3