From 830cf21b8a2bf87ba2fd7f19639cb565fcf9cf75 Mon Sep 17 00:00:00 2001 From: kottochii <106819117+kottochii@users.noreply.github.com> Date: Thu, 14 May 2026 22:04:01 +1000 Subject: [PATCH 1/2] add support for arm64 and enforce -Ofast --- Makefile | 4 +--- include/Configuration.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index dda8d7c..fc2189e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ INCDIRS = -Iinclude -CXX = skm g++ $(INCDIRS) +CXX = skm g++ $(INCDIRS) -Ofast src = $(wildcard src/*.cpp) obj = $(src:.cpp=.o) @@ -14,8 +14,6 @@ else endif endif -OSFLAGS = -O3 - ArcadeMachine: $(obj) -.scripts/generate-stats.sh $(CXX) -o $@ $^ $(LDFLAGS) $(OSFLAGS) diff --git a/include/Configuration.h b/include/Configuration.h index 537c24f..cf88b7b 100644 --- a/include/Configuration.h +++ b/include/Configuration.h @@ -11,7 +11,7 @@ #define ARCADE_MACHINE_PATH_SEP "/" #endif -#ifdef __arm__ +#if defined(__arm__) || defined(__aarch64__) #define ARCADE_MACHINE_INSTRUCTION_SET "arm" #else #define ARCADE_MACHINE_INSTRUCTION_SET "x86" From 71506da06537374472dd1081a88f47465b9d031c Mon Sep 17 00:00:00 2001 From: kottochii <106819117+kottochii@users.noreply.github.com> Date: Thu, 14 May 2026 22:18:54 +1000 Subject: [PATCH 2/2] removed OSFLAGS from compiling list --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fc2189e..b4c01c2 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ endif ArcadeMachine: $(obj) -.scripts/generate-stats.sh - $(CXX) -o $@ $^ $(LDFLAGS) $(OSFLAGS) + $(CXX) -o $@ $^ $(LDFLAGS) clean: rm $(obj)