aboutsummaryrefslogtreecommitdiff
path: root/makefile.before
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-01-31 13:24:04 +0000
committermarha <marha@users.sourceforge.net>2011-01-31 13:24:04 +0000
commit6751d9898be671d253d6f7b0806cd4b10daaaf85 (patch)
tree23d7de97c118844b449b6c2102bc01b1385db39b /makefile.before
parent605c2377adb51f3fc7105ee92c4fb773b26d7f9b (diff)
downloadvcxsrv-6751d9898be671d253d6f7b0806cd4b10daaaf85.tar.gz
vcxsrv-6751d9898be671d253d6f7b0806cd4b10daaaf85.tar.bz2
vcxsrv-6751d9898be671d253d6f7b0806cd4b10daaaf85.zip
Enabled global optimisation in release build
winmain : GetEnvironmentStrings return should be freed with FreeEnvironmentStrings
Diffstat (limited to 'makefile.before')
-rw-r--r--makefile.before7
1 files changed, 4 insertions, 3 deletions
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