mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 20:00:43 +00:00
28 lines
981 B
Diff
28 lines
981 B
Diff
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_9~svn351647/lldb/source/Utility/CMakeLists.txt
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_9~svn351647.orig/lldb/source/Utility/CMakeLists.txt
|
|
+++ llvm-toolchain-snapshot_9~svn351647/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)
|