git.y1.nz

SameBoy

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

commit 0c81f362697f77b65b52ff259786694980d134b9
parent 27b5935b8d0e0af988bcac8e55e92703af24f335
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Tue, 16 Jan 2024 23:23:53 +0200

Disable function outlining

Diffstat:
MMakefile5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -285,6 +285,11 @@ else FRONTEND_CFLAGS += -Os endif +# Don't use function outlining. I breaks Obj-C ARC optimizations and Apple never bothered to fix it. It also hardly has any effect on file size. +ifeq ($(shell $(CC) -x c -c $(NULL) -o $(NULL) -Werror -mno-outline 2> $(NULL); echo $$?),0) +FRONTEND_CFLAGS += -mno-outline +endif + 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.