[libc-commits] [libc] [libc] Update include directory for libcMPCommon target when LLVM_LIBC_MPFR_INSTALL_PATH is set. (PR #124765)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 28 07:22:20 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: None (lntue)
<details>
<summary>Changes</summary>
Fix the current riscv32 bot failures.
---
Full diff: https://github.com/llvm/llvm-project/pull/124765.diff
1 Files Affected:
- (modified) libc/utils/MPFRWrapper/CMakeLists.txt (+4)
``````````diff
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)
``````````
</details>
https://github.com/llvm/llvm-project/pull/124765
More information about the libc-commits
mailing list