[llvm] r367359 - [NFC] Improve cmake diagnostic when checking atomics

JF Bastien via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 15:08:39 PDT 2019


Author: jfb
Date: Tue Jul 30 15:08:38 2019
New Revision: 367359

URL: http://llvm.org/viewvc/llvm-project?rev=367359&view=rev
Log:
[NFC] Improve cmake diagnostic when checking atomics

Modified:
    llvm/trunk/cmake/modules/CheckAtomic.cmake

Modified: llvm/trunk/cmake/modules/CheckAtomic.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/CheckAtomic.cmake?rev=367359&r1=367358&r2=367359&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/CheckAtomic.cmake (original)
+++ llvm/trunk/cmake/modules/CheckAtomic.cmake Tue Jul 30 15:08:38 2019
@@ -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()
 




More information about the llvm-commits mailing list