Commit f0be7401 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Enable -O3 and -flto

parent cd7d3556
......@@ -465,12 +465,20 @@ ifeq ($(DEBUG),1)
LDFLAGS += -g
CFLAGS += -g
else
ifneq (,$(findstring msvc,$(platform)))
OPTFLAGS := -O2
else
OPTFLAGS := -O3
endif
RZDCY_CFLAGS += -DNDEBUG
RZDCY_CXXFLAGS += -DNDEBUG
CFLAGS += -DNDEBUG
CXXFLAGS += -DNDEBUG
LDFLAGS += -DNDEBUG
RZDCY_CFLAGS += -flto
RZDCY_CXXFLAGS += -flto
CFLAGS += -flto
CXXFLAGS += -flto
endif
RZDCY_CFLAGS += $(CFLAGS) -c $(OPTFLAGS) -DRELEASE -ffast-math -fomit-frame-pointer -D__LIBRETRO__
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment