diff options
author | marha <marha@users.sourceforge.net> | 2011-01-31 13:24:04 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-01-31 13:24:04 +0000 |
commit | 6751d9898be671d253d6f7b0806cd4b10daaaf85 (patch) | |
tree | 23d7de97c118844b449b6c2102bc01b1385db39b /makefile.before | |
parent | 605c2377adb51f3fc7105ee92c4fb773b26d7f9b (diff) | |
download | vcxsrv-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.before | 7 |
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
|