From 5aad20d85ca4146ff3427b86b8664321263e1c0d Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 19 Feb 2026 04:26:14 +0200 Subject: [PATCH] let's try -Ofast --- Makefile | 3 ++- Makefile.libretro | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 179e22e8..5e377d1c 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ ifneq ($(DEBUG)$(DEBUG_SYMS), 00) CFLAGS += -ggdb endif ifneq ($(DEBUG), 1) -CFLAGS += -O3 +CFLAGS += -Ofast ifneq ($(ASSERTS), 1) CFLAGS += -DNDEBUG endif @@ -197,6 +197,7 @@ endif else ifeq "$(DYNAREC)" "ari64" OBJS += libpcsxcore/new_dynarec/new_dynarec.o OBJS += libpcsxcore/new_dynarec/pcsxmem.o +libpcsxcore/new_dynarec/new_dynarec.o: CFLAGS += -O2 # less bloat ifeq "$(ARCH)" "arm" OBJS += libpcsxcore/new_dynarec/linkage_arm.o else ifneq (,$(findstring $(ARCH),aarch64 arm64)) diff --git a/Makefile.libretro b/Makefile.libretro index 285c6b59..4dc2f0ce 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -335,7 +335,6 @@ else ifeq ($(platform), vita) CFLAGS += -fno-optimize-sibling-calls # broken arm->thumb tailcalls? CFLAGS += -I$(VITASDK)/include -Ifrontend/vita CFLAGS += -DNO_DYLIB - CFLAGS_LAST += -O3 ASFLAGS += -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon HAVE_NEON_ASM = 1 @@ -361,7 +360,6 @@ else ifeq ($(platform), ctr) CFLAGS += -march=armv6k -mtune=mpcore -mfloat-abi=hard -marm -mfpu=vfp -mtp=soft CFLAGS += -mword-relocations CFLAGS += -fomit-frame-pointer - CFLAGS_LAST += -O3 # CFLAGS += -funroll-loops # ~500K of bloat CFLAGS += -Ifrontend/3ds -I$(CTRULIB)/include CFLAGS += -Werror=implicit-function-declaration -- 2.47.3