[all-commits] [llvm/llvm-project] d0c8d5: Fix CMake configuration error when run with -Werro...
AlexDenisov via All-commits
all-commits at lists.llvm.org
Sat Oct 10 12:26:53 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d0c8d58527b07d8609961ea1f084d69ce0fcd3a8
https://github.com/llvm/llvm-project/commit/d0c8d58527b07d8609961ea1f084d69ce0fcd3a8
Author: Alex Denisov <alex at lowlevelbits.org>
Date: 2020-10-10 (Sat, 10 Oct 2020)
Changed paths:
M llvm/cmake/modules/CheckAtomic.cmake
Log Message:
-----------
Fix CMake configuration error when run with -Werror/-Wall
The following code doesn't compile
uint64_t i = x.load(std::memory_order_relaxed);
return 0;
when CMAKE_C_FLAGS set to -Werror -Wall, thus incorrectly
breaking the CMake configuration step:
-- Looking for __atomic_load_8 in atomic
-- Looking for __atomic_load_8 in atomic - not found
CMake Error at cmake/modules/CheckAtomic.cmake:79 (message):
Host compiler appears to require libatomic for 64-bit operations, but
cannot find it.
Call Stack (most recent call first):
cmake/config-ix.cmake:360 (include)
CMakeLists.txt:671 (include)
More information about the All-commits
mailing list