[libc-commits] [libc] 22a5593 - [libc] Don't try to use MPFR with the GPU build for now

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed Feb 8 06:52:19 PST 2023


Author: Joseph Huber
Date: 2023-02-08T08:51:47-06:00
New Revision: 22a5593b0389c810c62ecae2b696d626c7ac0355

URL: https://github.com/llvm/llvm-project/commit/22a5593b0389c810c62ecae2b696d626c7ac0355
DIFF: https://github.com/llvm/llvm-project/commit/22a5593b0389c810c62ecae2b696d626c7ac0355.diff

LOG: [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.

Added: 
    

Modified: 
    libc/cmake/modules/LLVMLibCCheckMPFR.cmake

Removed: 
    


################################################################################
diff  --git a/libc/cmake/modules/LLVMLibCCheckMPFR.cmake b/libc/cmake/modules/LLVMLibCCheckMPFR.cmake
index 46f679f1330d3..9e361f5fd8112 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


        


More information about the libc-commits mailing list