[libc-commits] [libc] [libc] Update include directory for libcMPCWrapper target when LIBC_MPC_INSTALL_PATH is set. (PR #124810)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue Jan 28 14:04:35 PST 2025


================
@@ -17,6 +17,14 @@ if(LIBC_TESTS_CAN_USE_MPC)
     libc.src.__support.complex_type
     LibcTest.unit
   )
+  if(EXISTS ${LLVM_LIBC_MPFR_INSTALL_PATH})
+    target_include_directories(libcMPCWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/include)
+    target_link_directories(libcMPCWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/lib)
+  endif()
+  if(EXISTS ${LIBC_MPC_INSTALL_PATH})
+    target_include_directories(libcMPCWrapper PUBLIC ${LIBC_MPC_INSTALL_PATH}/include)
+    target_link_directories(libcMPCWrapper PUBLIC ${LIBC_MPC_INSTALL_PATH}/lib)
+  endif()
----------------
nickdesaulniers wrote:

Sounds like a good plan. Do we have a bug on file for that? If not, would you please file one?

https://github.com/llvm/llvm-project/pull/124810


More information about the libc-commits mailing list