llvm-project/llvm/cmake
Alex Denisov d0c8d58527 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)
2020-10-10 21:22:40 +02:00
..
modules Fix CMake configuration error when run with -Werror/-Wall 2020-10-10 21:22:40 +02:00
platforms Explicitly specify CMAKE_AR in WinMsvc.cmake 2020-09-23 18:05:29 -07:00
README
config-ix.cmake [CMake] Use append for CMAKE_REQUIRED_* variables 2020-09-21 23:39:56 -07:00
config.guess [cmake] configure the host triple on an Apple Silicon machine correctly 2020-06-23 21:08:11 -07:00
dummy.cpp
nsis_icon.ico
nsis_logo.bmp

README

See docs/CMake.html for instructions on how to build LLVM with CMake.