From 856f39d6e9158b98c8aa5967e5d6ff939762486c Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 15 Feb 2005 14:34:50 +0000 Subject: [PATCH] make it easier to tweak compiler optimizations (since some produce crashing code) --- wince/armrel.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wince/armrel.mk b/wince/armrel.mk index d26629e04..906b1f9fe 100755 --- a/wince/armrel.mk +++ b/wince/armrel.mk @@ -16,6 +16,10 @@ CC = $(WCE420)/bin/clarm.exe LINK = $(WCE420)/bin/link.exe RC = $(VSDIR)/Common/MSDev98/Bin/rc.exe +# CC_OPT += /Os +# CC_OPT += /O1 +# CC_OPT += /Og + include ../common/config.mk include ./shared.mk @@ -24,7 +28,7 @@ include ./shared.mk # Since three rules use exactly the same command, I'm writing it out # only once C_CMD = \ - $(CC) /nologo /W3 /Os /O1 /I "$(WINCE_PATH)\Include\Armv4" \ + $(CC) /nologo $(CC_OPT) /W3 /I "$(WINCE_PATH)\Include\Armv4" \ /I "..\common" /I "." /D _WIN32_WCE=420 /D "WIN32_PLATFORM_PSPC=400" \ /D "ARM" /D "_ARM_" /D "ARMV4" /D UNDER_CE=420 /D "UNICODE" \ /D "_UNICODE" /D "NDEBUG" $(XW_C_DEFINES) \