libstrat: enable lto

This commit is contained in:
Michael Scire 2019-10-25 01:03:07 -07:00
parent 0eea56f077
commit 4fabafcd06

View File

@ -20,7 +20,7 @@ SOURCES := source source/ams source/hos source/result source/os source/os/impl
DATA := data DATA := data
INCLUDES := include INCLUDES := include
DEFINES := -DRESULT_ABORT_ON_ASSERT DEFINES :=
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# options for code generation # options for code generation
@ -32,7 +32,7 @@ CFLAGS := -g -Wall -O2 -ffunction-sections \
CFLAGS += $(INCLUDE) -D__SWITCH__ CFLAGS += $(INCLUDE) -D__SWITCH__
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17 CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17 -flto
ASFLAGS := -g $(ARCH) ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)