From 4ff8549fda7d9262c38f61f2f74c75970706e40a Mon Sep 17 00:00:00 2001 From: Toxa Date: Sun, 19 Jan 2025 02:25:53 +0300 Subject: [PATCH] force --no-optsdcc-in-asm while building the library and in the lcc --- gbdk-lib/Makefile.common | 1 + gbdk-support/lcc/gb.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gbdk-lib/Makefile.common b/gbdk-lib/Makefile.common index e7797513..903463f8 100644 --- a/gbdk-lib/Makefile.common +++ b/gbdk-lib/Makefile.common @@ -26,6 +26,7 @@ CFLAGS = -I$(TOPDIR)/include -D__PORT_$(PORT) -D__TARGET_$(THIS) CFLAGS += -m$(PORT) CFLAGS += --max-allocs-per-node 50000 CFLAGS += --fsigned-char +CFLAGS += --no-optsdcc-in-asm CC = $(SCC) BUILD = $(TOPDIR)/build/$(THIS) LIB = $(BUILD)/$(THIS).lib diff --git a/gbdk-support/lcc/gb.c b/gbdk-support/lcc/gb.c index 574c7545..8688fd27 100644 --- a/gbdk-support/lcc/gb.c +++ b/gbdk-support/lcc/gb.c @@ -46,7 +46,7 @@ static struct { { "comopt", "--noinvariant --noinduction" }, { "com", "%sdccdir%sdcc" }, { "comflag", "-c"}, - { "comdefault", "-m%port% --no-std-crt0 --fsigned-char --use-stdout -D__PORT_%port% -D__TARGET_%plat% "}, + { "comdefault", "-m%port% --no-std-crt0 --fsigned-char --use-stdout --no-optsdcc-in-asm -D__PORT_%port% -D__TARGET_%plat% "}, /* asdsgb assembler defaults: -p: disable pagination -o: create object file