projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6064742
)
[libc] Don't try to use MPFR with the GPU build for now
author
Joseph Huber
<jhuber6@vols.utk.edu>
Wed, 8 Feb 2023 14:51:03 +0000
(08:51 -0600)
committer
Joseph Huber
<jhuber6@vols.utk.edu>
Wed, 8 Feb 2023 14:51:47 +0000
(08:51 -0600)
Summary:
We don't have the infastructure to support MPFR on the GPU. We should
disable this categorically on GPU builds for now.
libc/cmake/modules/LLVMLibCCheckMPFR.cmake
patch
|
blob
|
history
diff --git
a/libc/cmake/modules/LLVMLibCCheckMPFR.cmake
b/libc/cmake/modules/LLVMLibCCheckMPFR.cmake
index
46f679f
..
9e361f5
100644
(file)
--- a/
libc/cmake/modules/LLVMLibCCheckMPFR.cmake
+++ b/
libc/cmake/modules/LLVMLibCCheckMPFR.cmake
@@
-2,6
+2,8
@@
set(LLVM_LIBC_MPFR_INSTALL_PATH "" CACHE PATH "Path to where MPFR is installed (
if(LLVM_LIBC_MPFR_INSTALL_PATH)
set(LIBC_TESTS_CAN_USE_MPFR TRUE)
+elseif(LIBC_TARGET_ARCHITECTURE_IS_GPU)
+ set(LIBC_TESTS_CAN_USE_MPFR FALSE)
else()
try_compile(
LIBC_TESTS_CAN_USE_MPFR