Unverified Commit 7bc0d874 authored by Ignacio Sanchez Gines's avatar Ignacio Sanchez Gines
Browse files

Add LTO optimization

parent 90b01e52
Pipeline #17317 passed with stages
in 6 minutes and 16 seconds
......@@ -34,7 +34,7 @@ DEBUG ?= 0
ifeq ($(DEBUG), 1)
CXXFLAGS +=-DDEBUG -g3 -fsanitize=address
else
CXXFLAGS +=-DNDEBUG -O3
CXXFLAGS +=-DNDEBUG -O3 -flto
endif
LIBS =
......
......@@ -203,8 +203,8 @@ else ifeq ($(platform), ps2)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = mips64r5900el-ps2-elf-gcc
CXX = mips64r5900el-ps2-elf-g++
AR = mips64r5900el-ps2-elf-ar
CXXFLAGS += -Wall -DMINIZ_NO_TIME -ffast-math -fsingle-precision-constant -DPS2
AR = mips64r5900el-ps2-elf-gcc-ar
CXXFLAGS += -Wall -DMINIZ_NO_TIME -ffast-math -fsingle-precision-constant -flto -march=r5900 -DPS2
STATIC_LINKING = 1
# PSP
else ifeq ($(platform), psp1)
......
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