Skip to content

Commit 22a5593

Browse files
committed
[libc] Don't try to use MPFR with the GPU build for now
Summary: We don't have the infastructure to support MPFR on the GPU. We should disable this categorically on GPU builds for now.
1 parent 6064742 commit 22a5593

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/cmake/modules/LLVMLibCCheckMPFR.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ set(LLVM_LIBC_MPFR_INSTALL_PATH "" CACHE PATH "Path to where MPFR is installed (
22

33
if(LLVM_LIBC_MPFR_INSTALL_PATH)
44
set(LIBC_TESTS_CAN_USE_MPFR TRUE)
5+
elseif(LIBC_TARGET_ARCHITECTURE_IS_GPU)
6+
set(LIBC_TESTS_CAN_USE_MPFR FALSE)
57
else()
68
try_compile(
79
LIBC_TESTS_CAN_USE_MPFR

0 commit comments

Comments
 (0)