aboutsummaryrefslogtreecommitdiffstats
path: root/community/llvm5/fix-CheckAtomic.cmake.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-05-08 13:15:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-08 13:15:01 +0000
commit17a04e76bd61d4185c71f3f31227786a17caec74 (patch)
treea84731b3b3da34cbf473e98f0e27733f2d2a605a /community/llvm5/fix-CheckAtomic.cmake.patch
parent4b8e007d440b5cfa6ca95cedb193bbc9083b63a5 (diff)
downloadaports-17a04e76bd61d4185c71f3f31227786a17caec74.tar.bz2
aports-17a04e76bd61d4185c71f3f31227786a17caec74.tar.xz
community/llvm5: move from main
nothing in main uses llvm5 anymore
Diffstat (limited to 'community/llvm5/fix-CheckAtomic.cmake.patch')
-rw-r--r--community/llvm5/fix-CheckAtomic.cmake.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/llvm5/fix-CheckAtomic.cmake.patch b/community/llvm5/fix-CheckAtomic.cmake.patch
new file mode 100644
index 0000000000..a5309de6cf
--- /dev/null
+++ b/community/llvm5/fix-CheckAtomic.cmake.patch
@@ -0,0 +1,22 @@
+This cmake file uses command CHECK_LIBRARY_EXISTS that is defined in
+module CheckLibraryExists, but it does not include that module.
+
+This caused build error in lldb, but only on x86 (not x86_64)...
+
+ -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Failed
+ CMake Error at /usr/lib/llvm4/lib/cmake/llvm/CheckAtomic.cmake:66 (check_library_exists):
+ Unknown CMake command "check_library_exists".
+ Call Stack (most recent call first):
+ cmake/modules/LLDBStandalone.cmake:90 (include)
+ CMakeLists.txt:3 (include)
+
+--- a/cmake/modules/CheckAtomic.cmake
++++ b/cmake/modules/CheckAtomic.cmake
+@@ -1,6 +1,7 @@
+ # atomic builtins are required for threading support.
+
+ INCLUDE(CheckCXXSourceCompiles)
++INCLUDE(CheckLibraryExists)
+
+ # Sometimes linking against libatomic is required for atomic ops, if
+ # the platform doesn't support lock-free atomics.