mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
[libc][NFC] Adjust some CMake messages for the GPU build
Summary: This disables the MPFR warning on the GPU since we can't support it anyway. Also fixes a misspelled message.
This commit is contained in:
parent
8d7ded37a6
commit
ffc422463d
@ -21,7 +21,7 @@ if(NOT (CMAKE_CXX_COMPILER_ID MATCHES "[Cc]lang" AND
|
||||
${CMAKE_CXX_COMPILER_VERSION} VERSION_EQUAL "${req_ver}"))
|
||||
message(FATAL_ERROR "Cannot build libc for GPU. CMake compiler "
|
||||
"'${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}' "
|
||||
" is not `Clang ${req_ver}.")
|
||||
" is not 'Clang ${req_ver}'.")
|
||||
endif()
|
||||
if(NOT LLVM_LIBC_FULL_BUILD)
|
||||
message(FATAL_ERROR "LLVM_LIBC_FULL_BUILD must be enabled to build libc for "
|
||||
|
@ -20,6 +20,6 @@ if(LIBC_TESTS_CAN_USE_MPFR)
|
||||
target_link_directories(libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/lib)
|
||||
endif()
|
||||
target_link_libraries(libcMPFRWrapper LibcFPTestHelpers LibcUnitTest mpfr gmp libc_test_utils)
|
||||
else()
|
||||
elseif(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
|
||||
message(WARNING "Math tests using MPFR will be skipped.")
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user