From 714f38cb4bdb7c26448131cf29f2388b1cb93566 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 26 Jan 2019 23:50:00 +0100 Subject: [PATCH] Don't use O3 for MSVC --- libretro/Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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)