blob: f4f2cab8022d0eddbb546b645c1895034ba628ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
Description: Link with -latomic when mips* processor is detected
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Last-Update: 2016-07-27
---
lldb/cmake/LLDBDependencies.cmake | 6 ++++++
1 file changed, 6 insertions(+)
Index: llvm-toolchain-snapshot_8~svn349138/lldb/source/Utility/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_8~svn349138.orig/lldb/source/Utility/CMakeLists.txt
+++ llvm-toolchain-snapshot_8~svn349138/lldb/source/Utility/CMakeLists.txt
@@ -32,6 +32,14 @@ endif()
list(APPEND LLDB_SYSTEM_LIBS ${system_libs})
+if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips" OR
+ CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mipsel" OR
+ CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64el" OR
+ CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "powerpcspe")
+ list(APPEND LLDB_SYSTEM_LIBS atomic)
+endif()
+
+
if (LLVM_BUILD_STATIC)
if (NOT LLDB_DISABLE_PYTHON)
list(APPEND LLDB_SYSTEM_LIBS python2.7 util)
|