File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11if (LIBC_TESTS_CAN_USE_MPFR)
2- set (LLVM_LIBC_MPC_INSTALL_PATH "" CACHE PATH "Path to where MPC is installed (e.g. C:/src/install or ~/src/install)" )
2+ set (LIBC_MPC_INSTALL_PATH "" CACHE PATH "Path to where MPC is installed (e.g. C:/src/install or ~/src/install)" )
33
4- if (LLVM_LIBC_MPC_INSTALL_PATH )
4+ if (LIBC_MPC_INSTALL_PATH )
55 set (LIBC_TESTS_CAN_USE_MPC TRUE )
66 elseif (LIBC_TARGET_OS_IS_GPU OR LLVM_LIBC_FULL_BUILD)
77 # In full build mode, the MPC library should be built using our own facilities,
Original file line number Diff line number Diff line change @@ -17,6 +17,14 @@ if(LIBC_TESTS_CAN_USE_MPC)
1717 libc.src.__support.complex_type
1818 LibcTest.unit
1919 )
20+ if (EXISTS ${LLVM_LIBC_MPFR_INSTALL_PATH} )
21+ target_include_directories (libcMPCWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH} /include )
22+ target_link_directories (libcMPCWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH} /lib)
23+ endif ()
24+ if (EXISTS ${LIBC_MPC_INSTALL_PATH} )
25+ target_include_directories (libcMPCWrapper PUBLIC ${LIBC_MPC_INSTALL_PATH} /include )
26+ target_link_directories (libcMPCWrapper PUBLIC ${LIBC_MPC_INSTALL_PATH} /lib)
27+ endif ()
2028 target_include_directories (libcMPCWrapper PUBLIC ${LIBC_SOURCE_DIR} )
2129 target_link_libraries (libcMPCWrapper PUBLIC libcMPCommon LibcFPTestHelpers.unit LibcTest.unit mpc)
2230elseif (NOT LIBC_TARGET_OS_IS_GPU AND NOT LLVM_LIBC_FULL_BUILD)
You can’t perform that action at this time.
0 commit comments