[NFC] Improve cmake diagnostic when checking atomics
authorJF Bastien <jfbastien@apple.com>
Tue, 30 Jul 2019 22:08:38 +0000 (22:08 +0000)
committerJF Bastien <jfbastien@apple.com>
Tue, 30 Jul 2019 22:08:38 +0000 (22:08 +0000)
llvm-svn: 367359

llvm/cmake/modules/CheckAtomic.cmake

index 9a4cdf1..29f3bdd 100644 (file)
@@ -69,10 +69,10 @@ if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
     list(APPEND CMAKE_REQUIRED_LIBRARIES "atomic")
     check_working_cxx_atomics64(HAVE_CXX_ATOMICS64_WITH_LIB)
     if (NOT HAVE_CXX_ATOMICS64_WITH_LIB)
-      message(FATAL_ERROR "Host compiler must support std::atomic!")
+      message(FATAL_ERROR "Host compiler must support 64-bit std::atomic!")
     endif()
   else()
-    message(FATAL_ERROR "Host compiler appears to require libatomic, but cannot find it.")
+    message(FATAL_ERROR "Host compiler appears to require libatomic for 64-bit operations, but cannot find it.")
   endif()
 endif()