From 67cdac3a36df615f4b805206c11360c351731433 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 14 Dec 2009 08:43:07 -0700 Subject: [PATCH] tweak MSVC compiler flags We now use -O2 for the "fast" build and always pass -debug to the linker so we get a PDB file. --- makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index 694450c6c7..3a34205e8c 100644 --- a/makefile +++ b/makefile @@ -271,19 +271,17 @@ ifdef msvc -I"$(windows-java-home)/include/win32" shared = -dll lflags = -nologo -LIBPATH:"$(zlib)/lib" -DEFAULTLIB:ws2_32 \ - -DEFAULTLIB:zlib -MANIFEST + -DEFAULTLIB:zlib -MANIFEST -debug output = -Fo$(1) ifeq ($(mode),debug) cflags += -Od -Zi -MDd - lflags += -debug endif ifeq ($(mode),debug-fast) cflags += -Od -Zi -DNDEBUG - lflags += -debug endif ifeq ($(mode),fast) - cflags += -Ob2it -GL -Zi -DNDEBUG + cflags += -O2 -GL -Zi -DNDEBUG lflags += -LTCG endif ifeq ($(mode),small)