libstrat: enable lto

This commit is contained in:
Michael Scire authored and SciresM committed 2019-12-07 12:41:28 -08:00
1 parent d7a06057eb
commit 93a218abeb
2 files changed
+2 -3

No files matched your search

@@ -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"
+2 -2
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)