1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 06:01:52 +00:00

libstrat: enable lto

This commit is contained in:
Michael Scire 2019-10-25 01:03:07 -07:00 committed by SciresM
parent d7a06057eb
commit 93a218abeb
2 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "boot_power_utils.hpp"
#include "fusee-primary_bin.h"

View file

@ -20,7 +20,7 @@ SOURCES := source source/ams source/hos source/result source/os source/os/impl
DATA := data
INCLUDES := include
DEFINES := -DRESULT_ABORT_ON_ASSERT
DEFINES :=
#---------------------------------------------------------------------------------
# options for code generation
@ -32,7 +32,7 @@ CFLAGS := -g -Wall -O2 -ffunction-sections \
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)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)