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:
Gianfranco Costamagna 2022-06-27 14:58:52 +08:00 committed by Lu zhiping
parent a92db3513e
commit 0766f9f3a6
1 changed files with 7 additions and 0 deletions

View File

@ -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 ()