aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/llvm5/fix-CheckAtomic.cmake.patch
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2019-08-11 22:21:15 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-08-11 17:26:22 -0300
commitbb51a7beb58a9d9d285f409b81ee03001b1c700a (patch)
tree48e9f86f5ffd862d86b4635c345ad68cdcc0000e /unmaintained/llvm5/fix-CheckAtomic.cmake.patch
parent8cfd3538acb4e2fcaa7aa9e6ad90e8c342bdc0f6 (diff)
downloadaports-bb51a7beb58a9d9d285f409b81ee03001b1c700a.tar.bz2
aports-bb51a7beb58a9d9d285f409b81ee03001b1c700a.tar.xz
unmaintained/llvm5: move from community
Diffstat (limited to 'unmaintained/llvm5/fix-CheckAtomic.cmake.patch')
-rw-r--r--unmaintained/llvm5/fix-CheckAtomic.cmake.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/unmaintained/llvm5/fix-CheckAtomic.cmake.patch b/unmaintained/llvm5/fix-CheckAtomic.cmake.patch
new file mode 100644
index 0000000000..a5309de6cf
--- /dev/null
+++ b/unmaintained/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.