Some ctype functions are called from other libc functions (e.g. isspace is used in atoi). By moving ctype_utils.h to __support it becomes easier to include just the implementations of these functions. For these reasons the implementation for isspace was moved into ctype_utils as well. FPUtils was moved to simplify the build order, and to clarify which files are a part of the actual libc. Many files were modified to accomodate these changes, mostly changing the #include paths. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D107600
15 lines
599 B
CMake
15 lines
599 B
CMake
if(LIBC_TESTS_CAN_USE_MPFR)
|
|
add_library(libcMPFRWrapper
|
|
MPFRUtils.cpp
|
|
MPFRUtils.h
|
|
)
|
|
add_dependencies(libcMPFRWrapper libc.utils.CPP.standalone_cpp libc.src.__support.FPUtil.fputil LibcUnitTest)
|
|
if(EXISTS ${LLVM_LIBC_MPFR_INSTALL_PATH})
|
|
target_include_directories(libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/include)
|
|
target_link_directories(libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/lib)
|
|
endif()
|
|
target_link_libraries(libcMPFRWrapper LibcFPTestHelpers LibcUnitTest mpfr gmp)
|
|
else()
|
|
message(WARNING "Math tests using MPFR will be skipped.")
|
|
endif()
|