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 1
1
if (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)" )
3
3
4
- if (LLVM_LIBC_MPC_INSTALL_PATH )
4
+ if (LIBC_MPC_INSTALL_PATH )
5
5
set (LIBC_TESTS_CAN_USE_MPC TRUE )
6
6
elseif (LIBC_TARGET_OS_IS_GPU OR LLVM_LIBC_FULL_BUILD )
7
7
# 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)
17
17
libc.src.__support.complex_type
18
18
LibcTest.unit
19
19
)
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 ()
20
28
target_include_directories (libcMPCWrapper PUBLIC ${LIBC_SOURCE_DIR} )
21
29
target_link_libraries (libcMPCWrapper PUBLIC libcMPCommon LibcFPTestHelpers.unit LibcTest.unit mpc )
22
30
elseif (NOT LIBC_TARGET_OS_IS_GPU AND NOT LLVM_LIBC_FULL_BUILD )
You can’t perform that action at this time.
0 commit comments