From: <sv...@op...> - 2024-11-02 16:09:21
|
Author: manx Date: Sat Nov 2 17:09:09 2024 New Revision: 22085 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22085 Log: [Fix] build: Makefile: DJGPP: Actually set compiler optimization level as desired per CPU. Modified: trunk/OpenMPT/build/make/config-djgpp.mk Modified: trunk/OpenMPT/build/make/config-djgpp.mk ============================================================================== --- trunk/OpenMPT/build/make/config-djgpp.mk Sat Nov 2 16:57:50 2024 (r22084) +++ trunk/OpenMPT/build/make/config-djgpp.mk Sat Nov 2 17:09:09 2024 (r22085) @@ -396,13 +396,22 @@ ifeq ($(findstring -O3,$(CPUFLAGS)),-O3) OPTIMIZE=none endif -ifeq ($(findstring -O3,$(CPUFLAGS)),-O2) +ifeq ($(findstring -O2,$(CPUFLAGS)),-O2) OPTIMIZE=none endif ifeq ($(findstring -Os,$(CPUFLAGS)),-Os) OPTIMIZE=none endif -ifeq ($(findstring -Os,$(CPUFLAGS)),-Oz) +ifeq ($(findstring -Oz,$(CPUFLAGS)),-Oz) +OPTIMIZE=none +endif +ifeq ($(findstring -O1,$(CPUFLAGS)),-O1) +OPTIMIZE=none +endif +ifeq ($(findstring -O0,$(CPUFLAGS)),-O0) +OPTIMIZE=none +endif +ifeq ($(findstring -Og,$(CPUFLAGS)),-Og) OPTIMIZE=none endif |