projects
/
llvm-toolchain-9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
780bf52
)
Link with -latomic when mips* processor is detected
author
Gianfranco Costamagna
<locutusofborg@debian.org>
Wed, 1 Apr 2020 15:23:55 +0000
(16:23 +0100)
committer
Jessica Clarke
<jrtc27@debian.org>
Wed, 1 Apr 2020 15:23:55 +0000
(16:23 +0100)
Last-Update: 2016-07-27
Gbp-Pq: Topic lldb
Gbp-Pq: Name lldb-link-atomic-cmake.patch
lldb/source/Utility/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/lldb/source/Utility/CMakeLists.txt
b/lldb/source/Utility/CMakeLists.txt
index 03254c334dc76392c6ca002239e970678fdef20a..81b57ec335898fee7e0cb64534abdceb1d2ac169 100644
(file)
--- a/
lldb/source/Utility/CMakeLists.txt
+++ b/
lldb/source/Utility/CMakeLists.txt
@@
-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 ()