diff options
Diffstat (limited to 'debian/patches/clangd-atomic-cmake.patch')
-rw-r--r-- | debian/patches/clangd-atomic-cmake.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/clangd-atomic-cmake.patch b/debian/patches/clangd-atomic-cmake.patch new file mode 100644 index 0000000..6529d56 --- /dev/null +++ b/debian/patches/clangd-atomic-cmake.patch @@ -0,0 +1,16 @@ +Index: llvm-toolchain-snapshot_8~svn346586/clang-tools-extra/clangd/CMakeLists.txt +=================================================================== +--- llvm-toolchain-snapshot_8~svn346586.orig/clang-tools-extra/clangd/CMakeLists.txt ++++ llvm-toolchain-snapshot_8~svn346586/clang-tools-extra/clangd/CMakeLists.txt +@@ -7,6 +7,11 @@ if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB) + list(APPEND CLANGD_ATOMIC_LIB "atomic") + endif() + ++if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i386" OR ++ CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i686") ++ list(APPEND CLANGD_ATOMIC_LIB "atomic") ++endif() ++ + add_clang_library(clangDaemon + AST.cpp + Cancellation.cpp |