From: JF Bastien Date: Tue, 30 Jul 2019 22:08:38 +0000 (+0000) Subject: [NFC] Improve cmake diagnostic when checking atomics X-Git-Tag: llvmorg-11-init~13251 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d56dc1d926b9ee2317f3766d21700bdc77dd84f6;p=platform%2Fupstream%2Fllvm.git [NFC] Improve cmake diagnostic when checking atomics llvm-svn: 367359 --- diff --git a/llvm/cmake/modules/CheckAtomic.cmake b/llvm/cmake/modules/CheckAtomic.cmake index 9a4cdf12..29f3bdd 100644 --- a/llvm/cmake/modules/CheckAtomic.cmake +++ b/llvm/cmake/modules/CheckAtomic.cmake @@ -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()