From: Joseph Huber Date: Wed, 8 Feb 2023 14:51:03 +0000 (-0600) Subject: [libc] Don't try to use MPFR with the GPU build for now X-Git-Tag: upstream/17.0.6~18188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22a5593b0389c810c62ecae2b696d626c7ac0355;p=platform%2Fupstream%2Fllvm.git [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. --- diff --git a/libc/cmake/modules/LLVMLibCCheckMPFR.cmake b/libc/cmake/modules/LLVMLibCCheckMPFR.cmake index 46f679f..9e361f5f 100644 --- 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