git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit c2341110248b78ab82cef0322dcd5199b9246563
parent 996ebaafa36a1461aa912eeca9cd638bbbce5116
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Thu, 11 May 2023 00:31:59 +0300

GCC doesn't support Oz, only Os

Diffstat:
MMakefile4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -120,9 +120,11 @@ ifeq ($(shell $(CC) -x c -c $(NULL) -o $(NULL) -Werror -Wpartial-availability 2> WARNINGS += -Wpartial-availability endif +SIZE_FLAG := z # GCC's implementation of this warning has false positives, so we skip it ifneq ($(shell $(CC) --version 2>&1 | grep "gcc"), ) WARNINGS += -Wno-maybe-uninitialized +SIZE_FLAG := s endif CFLAGS += $(WARNINGS) @@ -217,7 +219,7 @@ CFLAGS += -g else ifeq ($(CONF), release) CFLAGS += -O3 -ffast-math -DNDEBUG # The frontend code is not time-critical, prefer reducing the size for less memory use and better cache utilization -FRONTEND_CFLAGS += -Oz +FRONTEND_CFLAGS += -O$(SIZE_FLAG) STRIP := strip CODESIGN := true ifeq ($(PLATFORM),Darwin)

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.