[libc-commits] [libc] [libc] Update include directory for libcMPCommon target when LLVM_LIBC_MPFR_INSTALL_PATH is set. (PR #124765)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Tue Jan 28 08:49:00 PST 2025
================
@@ -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()
----------------
nickdesaulniers wrote:
> uh... no, L23 and L24 are including and linking different things.
Ah definitely not L24, that's not doing the same thing!
https://github.com/llvm/llvm-project/pull/124765
More information about the libc-commits
mailing list