vs2015: turn on optimize-for-speed in release build

Set -O2 (maximize speed) rather than -Os (favor small code)
for non-debug builds.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
This commit is contained in:
Jeff Hostetler
2016-11-08 11:18:43 -05:00
committed by Johannes Schindelin
parent 7da1b6b902
commit ae420ae491

View File

@@ -439,7 +439,7 @@ ifeq ($(uname_S),Windows)
BASIC_CFLAGS += -Zi
BASIC_LDFLAGS += -debug
ifndef DEBUG
BASIC_CFLAGS += -GL -Gy -Os -Oy- -MD -DNDEBUG
BASIC_CFLAGS += -GL -Gy -O2 -Oy- -MD -DNDEBUG
BASIC_LDFLAGS += -release -LTCG /OPT:REF /OPT:ICF /INCREMENTAL:NO /DEBUGTYPE:CV,FIXUP
AR += -LTCG
else