diff --git a/win32/GNUmakefile b/win32/GNUmakefile index 5b9957fe5354..ea54e7ace7b1 100644 --- a/win32/GNUmakefile +++ b/win32/GNUmakefile @@ -697,8 +697,7 @@ EXTRACFLAGS += -MDd else # Enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG). -# -O1 yields smaller code, which turns out to be faster than -O2 on x86 and x64 -OPTIMIZE = -O1 -Zi -GL +OPTIMIZE = -O2 -Zi -GL -Gw # we enable debug symbols in release builds also LINK_DBG = -debug -opt:ref,icf -ltcg # you may want to enable this if you want COFF symbols in the executables diff --git a/win32/Makefile b/win32/Makefile index e4882bc36b42..9974b4118cb2 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -455,8 +455,7 @@ DEFINES = $(DEFINES) -D_DEBUG -DDEBUGGING EXTRACFLAGS = $(EXTRACFLAGS) -MDd !ELSE # Enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG). -# -O1 yields smaller code, which turns out to be faster than -O2 on x86 and x64 -OPTIMIZE = -O1 -Zi -GL +OPTIMIZE = -O2 -Zi -GL -Gw # we enable debug symbols in release builds also LINK_DBG = -debug -opt:ref,icf -ltcg # you may want to enable this if you want COFF symbols in the executables