mirror of
				https://git.proxmox.com/git/llvm-toolchain
				synced 2025-11-04 00:59:56 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			898 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			898 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/compiler-rt/lib/builtins/CMakeLists.txt
 | 
						|
===================================================================
 | 
						|
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/compiler-rt/lib/builtins/CMakeLists.txt
 | 
						|
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/compiler-rt/lib/builtins/CMakeLists.txt
 | 
						|
@@ -765,6 +765,12 @@ else ()
 | 
						|
     append_list_if(COMPILER_RT_ENABLE_CET -fcf-protection=full BUILTIN_CFLAGS)
 | 
						|
   endif()
 | 
						|
 
 | 
						|
+  if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
 | 
						|
+    append_list_if(COMPILER_RT_HAS_FLOAT16 -msse2 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS)
 | 
						|
+  else ()
 | 
						|
+    append_list_if(COMPILER_RT_HAS_FLOAT16 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS)
 | 
						|
+  endif()
 | 
						|
+
 | 
						|
   append_list_if(COMPILER_RT_HAS_STD_C11_FLAG -std=c11 BUILTIN_CFLAGS)
 | 
						|
 
 | 
						|
   # These flags would normally be added to CMAKE_C_FLAGS by the llvm
 |