Don't use O3 for MSVC

This commit is contained in:
twinaphex 2019-01-26 23:50:00 +01:00 committed by Brandon Wright
parent 72332a90ff
commit 714f38cb4b
1 changed files with 5 additions and 0 deletions

View File

@ -546,9 +546,14 @@ ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g -DDEBUG CFLAGS += -O0 -g -DDEBUG
CXXFLAGS += -O0 -g -DDEBUG CXXFLAGS += -O0 -g -DDEBUG
endif endif
else
ifneq (,$(findstring msvc,$(platform)))
CFLAGS += -O2 -DNDEBUG
CXXFLAGS += -O2 -DNDEBUG
else else
CFLAGS += -O3 -DNDEBUG CFLAGS += -O3 -DNDEBUG
CXXFLAGS += -O3 -DNDEBUG CXXFLAGS += -O3 -DNDEBUG
endif
ifneq (,$(findstring msvc,$(platform))) ifneq (,$(findstring msvc,$(platform)))
ifeq ($(STATIC_LINKING),1) ifeq ($(STATIC_LINKING),1)