[libc-commits] [libc] a080498 - [libc] Update include directory for libcMPCommon target when LLVM_LIBC_MPFR_INSTALL_PATH is set. (#124765)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 28 08:54:58 PST 2025
Author: lntue
Date: 2025-01-28T11:54:55-05:00
New Revision: a080498c92e4c00f099dab1a3d5dac48f14b7492
URL: https://github.com/llvm/llvm-project/commit/a080498c92e4c00f099dab1a3d5dac48f14b7492
DIFF: https://github.com/llvm/llvm-project/commit/a080498c92e4c00f099dab1a3d5dac48f14b7492.diff
LOG: [libc] Update include directory for libcMPCommon target when LLVM_LIBC_MPFR_INSTALL_PATH is set. (#124765)
Fix the current riscv32 bot failures.
Added:
Modified:
libc/utils/MPFRWrapper/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/utils/MPFRWrapper/CMakeLists.txt b/libc/utils/MPFRWrapper/CMakeLists.txt
index 8aeee2463dc51f..f7df9146c8d480 100644
--- a/libc/utils/MPFRWrapper/CMakeLists.txt
+++ b/libc/utils/MPFRWrapper/CMakeLists.txt
@@ -16,6 +16,10 @@ if(LIBC_TESTS_CAN_USE_MPFR OR LIBC_TESTS_CAN_USE_MPC)
libc.src.__support.FPUtil.cast
libc.src.__support.FPUtil.fp_bits
)
+ if(EXISTS ${LLVM_LIBC_MPFR_INSTALL_PATH})
+ target_include_directories(libcMPCommon PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/include)
+ target_link_directories(libcMPCommon PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/lib)
+ endif()
target_include_directories(libcMPCommon PUBLIC ${LIBC_SOURCE_DIR})
target_link_libraries(libcMPCommon PUBLIC LibcFPTestHelpers.unit mpfr gmp)
elseif(NOT LIBC_TARGET_OS_IS_GPU AND NOT LLVM_LIBC_FULL_BUILD)
More information about the libc-commits
mailing list