mirror of
				https://git.proxmox.com/git/llvm-toolchain
				synced 2025-11-04 14:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			908 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			908 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
Index: llvm-toolchain-snapshot_13~++20210603111529+5c0d1b2f902a/lld/tools/lld/CMakeLists.txt
 | 
						|
===================================================================
 | 
						|
--- llvm-toolchain-snapshot_13~++20210603111529+5c0d1b2f902a.orig/lld/tools/lld/CMakeLists.txt
 | 
						|
+++ llvm-toolchain-snapshot_13~++20210603111529+5c0d1b2f902a/lld/tools/lld/CMakeLists.txt
 | 
						|
@@ -1,10 +1,18 @@
 | 
						|
+set(LLD_ATOMIC_LIB "")
 | 
						|
+
 | 
						|
 set(LLVM_LINK_COMPONENTS
 | 
						|
   Support
 | 
						|
   )
 | 
						|
 
 | 
						|
+if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i386" OR
 | 
						|
+    CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i686" OR
 | 
						|
+    CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "amd64"
 | 
						|
+  )
 | 
						|
+  list(APPEND LLD_ATOMIC_LIB "atomic")
 | 
						|
+endif()
 | 
						|
+
 | 
						|
 add_lld_tool(lld
 | 
						|
   lld.cpp
 | 
						|
-
 | 
						|
   SUPPORT_PLUGINS
 | 
						|
   )
 | 
						|
 export_executable_symbols_for_plugins(lld)
 | 
						|
@@ -18,6 +26,7 @@ target_link_libraries(lld
 | 
						|
   lldMachO2
 | 
						|
   lldMinGW
 | 
						|
   lldWasm
 | 
						|
+  ${LLD_ATOMIC_LIB}
 | 
						|
   )
 | 
						|
 
 | 
						|
 install(TARGETS lld
 |