mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:52:45 +00:00 
			
		
		
		
	 ce8d410f36
			
		
	
	
		ce8d410f36
		
	
	
	
	
		
			
			Previously, on ARM64 hosts we'd try to build ARM64 binaries even when SERENITY_ARCH was set to x86_64. This would cause the build to fail.
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			598 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			598 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
 | |
| From: Jesse Buhagiar <jooster669@gmail.com>
 | |
| Date: Fri, 25 Mar 2022 21:46:14 +1100
 | |
| Subject: [PATCH] Meta: Add ARCH to TOOLS_CFLAGS
 | |
| 
 | |
| ---
 | |
|  Makefile | 2 ++
 | |
|  1 file changed, 2 insertions(+)
 | |
| 
 | |
| diff --git a/Makefile b/Makefile
 | |
| index 035fea7..c5a27ab 100644
 | |
| --- a/Makefile
 | |
| +++ b/Makefile
 | |
| @@ -813,6 +813,8 @@ ifeq ($(PLATFORM),serenity)
 | |
|      -pipe -DUSE_ICON -DMAP_ANONYMOUS=MAP_ANON
 | |
|    CLIENT_CFLAGS += $(SDL_CFLAGS)
 | |
|  
 | |
| +  TOOLS_CFLAGS += -DARCH_STRING=\"$(COMPILE_ARCH)\"
 | |
| +
 | |
|    OPTIMIZEVM = -O3
 | |
|    OPTIMIZE = $(OPTIMIZEVM) -ffast-math
 | |
|  
 |