diff --git a/libretro/Makefile b/libretro/Makefile index 23fccc22..2d011fc2 100644 --- a/libretro/Makefile +++ b/libretro/Makefile @@ -546,9 +546,14 @@ ifeq ($(DEBUG), 1) CFLAGS += -O0 -g -DDEBUG CXXFLAGS += -O0 -g -DDEBUG endif +else +ifneq (,$(findstring msvc,$(platform))) + CFLAGS += -O2 -DNDEBUG + CXXFLAGS += -O2 -DNDEBUG else CFLAGS += -O3 -DNDEBUG CXXFLAGS += -O3 -DNDEBUG +endif ifneq (,$(findstring msvc,$(platform))) ifeq ($(STATIC_LINKING),1)