We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d35931c commit b2b82c6Copy full SHA for b2b82c6
libc/cmake/modules/LLVMLibCCheckMPFR.cmake
@@ -1,11 +1,11 @@
1
set(LLVM_LIBC_MPFR_INSTALL_PATH "" CACHE PATH "Path to where MPFR is installed (e.g. C:/src/install or ~/src/install)")
2
3
-if(LLVM_LIBC_MPFR_INSTALL_PATH)
4
- set(LIBC_TESTS_CAN_USE_MPFR TRUE)
5
-elseif(LIBC_TARGET_OS_IS_GPU OR LLVM_LIBC_FULL_BUILD)
+if(LIBC_TARGET_OS_IS_GPU OR LLVM_LIBC_FULL_BUILD)
6
# In full build mode, the MPFR library should be built using our own facilities,
7
# which is currently not possible.
8
set(LIBC_TESTS_CAN_USE_MPFR FALSE)
+elseif(LLVM_LIBC_MPFR_INSTALL_PATH)
+ set(LIBC_TESTS_CAN_USE_MPFR TRUE)
9
else()
10
try_compile(
11
LIBC_TESTS_CAN_USE_MPFR
0 commit comments