mirror of
				https://git.proxmox.com/git/llvm-toolchain
				synced 2025-11-04 07:14:33 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			600 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			600 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
Index: llvm-toolchain-15-15.0.0~+rc3/compiler-rt/lib/builtins/clear_cache.c
 | 
						|
===================================================================
 | 
						|
--- llvm-toolchain-15-15.0.0~+rc3.orig/compiler-rt/lib/builtins/clear_cache.c
 | 
						|
+++ llvm-toolchain-15-15.0.0~+rc3/compiler-rt/lib/builtins/clear_cache.c
 | 
						|
@@ -6,6 +6,11 @@
 | 
						|
 //
 | 
						|
 //===----------------------------------------------------------------------===//
 | 
						|
 
 | 
						|
+#if defined(__linux__) && defined(__mips__)
 | 
						|
+// Otherwise, the build fails as it cannot find syscall
 | 
						|
+#define _GNU_SOURCE
 | 
						|
+#endif
 | 
						|
+
 | 
						|
 #include "int_lib.h"
 | 
						|
 #if defined(__linux__)
 | 
						|
 #include <assert.h>
 |