Skip to content

Commit b2b82c6

Browse files
[libc] Disabled mpfr tests in full build mode, even if we set the mpfr path
If we are doing a full libc build, mpfr tests should be disabled even if we set the mpfr path. This should fix the rv32 buildbot.
1 parent d35931c commit b2b82c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libc/cmake/modules/LLVMLibCCheckMPFR.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
set(LLVM_LIBC_MPFR_INSTALL_PATH "" CACHE PATH "Path to where MPFR is installed (e.g. C:/src/install or ~/src/install)")
22

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)
3+
if(LIBC_TARGET_OS_IS_GPU OR LLVM_LIBC_FULL_BUILD)
64
# In full build mode, the MPFR library should be built using our own facilities,
75
# which is currently not possible.
86
set(LIBC_TESTS_CAN_USE_MPFR FALSE)
7+
elseif(LLVM_LIBC_MPFR_INSTALL_PATH)
8+
set(LIBC_TESTS_CAN_USE_MPFR TRUE)
99
else()
1010
try_compile(
1111
LIBC_TESTS_CAN_USE_MPFR

0 commit comments

Comments
 (0)