mirror of
				https://git.proxmox.com/git/llvm-toolchain
				synced 2025-11-03 14:35:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			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_15~++20220407011631+46f0e2ceb487/lldb/source/Utility/CMakeLists.txt
 | 
						|
===================================================================
 | 
						|
--- llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487.orig/lldb/source/Utility/CMakeLists.txt
 | 
						|
+++ llvm-toolchain-snapshot_15~++20220407011631+46f0e2ceb487/lldb/source/Utility/CMakeLists.txt
 | 
						|
@@ -15,6 +15,13 @@ endif()
 | 
						|
 
 | 
						|
 list(APPEND LLDB_SYSTEM_LIBS ${CMAKE_DL_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 ()
 |