Link with -latomic when mips* processor is detected
Last-Update: 2016-07-27 Gbp-Pq: Topic lldb Gbp-Pq: Name lldb-link-atomic-cmake.patch
This commit is contained in:
parent
a92db3513e
commit
0766f9f3a6
|
@ -2,6 +2,13 @@ set(LLDB_SYSTEM_LIBS)
|
|||
|
||||
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 (CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
list(APPEND LLDB_SYSTEM_LIBS ws2_32 rpcrt4)
|
||||
endif ()
|
||||
|
|
Loading…
Reference in New Issue