llvm.org GIT mirror llvm / ebe4432
[NFC] Improve cmake diagnostic when checking atomics git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367359 91177308-0d34-0410-b5e6-96231b3b80d8 JF Bastien 2 months ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6868 list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic")
6969 check_working_cxx_atomics64(HAVE_CXX_ATOMICS64_WITH_LIB)
7070 if (NOT HAVE_CXX_ATOMICS64_WITH_LIB)
71 message(FATAL_ERROR "Host compiler must support std::atomic!")
71 message(FATAL_ERROR "Host compiler must support 64-bit std::atomic!")
7272 endif()
7373 else()
74 message(FATAL_ERROR "Host compiler appears to require libatomic, but cannot find it.")
74 message(FATAL_ERROR "Host compiler appears to require libatomic for 64-bit operations, but cannot find it.")
7575 endif()
7676 endif()
7777