From 6751d9898be671d253d6f7b0806cd4b10daaaf85 Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 31 Jan 2011 13:24:04 +0000 Subject: Enabled global optimisation in release build winmain : GetEnvironmentStrings return should be freed with FreeEnvironmentStrings --- makefile.before | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'makefile.before') diff --git a/makefile.before b/makefile.before index 6b064306a..e613eb603 100644 --- a/makefile.before +++ b/makefile.before @@ -17,7 +17,7 @@ NOT=$(if $(findstring 0,$(1)),1,0) CC ?= cl /nologo CPP ?= $(CC) -CCFLAGS += -c -GF #-Wall +CCFLAGS += -c -GF -Gy #-Wall #CCFLAGS += -wd4996 -wd4738 LINK ?= link /nologo @@ -50,11 +50,12 @@ OBJDIR ?= obj\$(OBJDIRPREFIX)debug DEFINES += _DEBUG DEBUG RCFLAGS += -d "_DEBUG" else -CCFLAGS += -MD -O2 -Ob2 -Oi -Ox -Oy -Ot -Zi +CCFLAGS += -MD -O2 -Ob2 -Oi -Ox -Oy -Ot -Zi -GL DEFINES += NDEBUG -LINKFLAGS += /OPT:REF /OPT:ICF /DEBUG +LINKFLAGS += /OPT:REF /OPT:ICF /DEBUG /LTCG:STATUS OBJDIR ?= obj\$(OBJDIRPREFIX)release RCFLAGS += -d "NDEBUG" +AR += /LTCG endif -- cgit v1.2.3