From cd9b173318059a497c4aea6a01b0ba9a3e0c2043 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 9 Mar 2023 23:46:31 -0700 Subject: [PATCH] windows: re-enable lto for os/fs libraries --- libraries/libstratosphere/libstratosphere.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libraries/libstratosphere/libstratosphere.mk b/libraries/libstratosphere/libstratosphere.mk index 7ed6a8a90..b10f27f13 100644 --- a/libraries/libstratosphere/libstratosphere.mk +++ b/libraries/libstratosphere/libstratosphere.mk @@ -154,10 +154,12 @@ spl_secure_monitor_api.os.generic.o: CXXFLAGS += -I$(ATMOSPHERE_LIBRARIES_DIR)/l fs_id_string_impl.os.generic.o: CXXFLAGS += -I$(ATMOSPHERE_LIBRARIES_DIR)/libexosphere/include ifeq ($(ATMOSPHERE_OS_NAME),windows) -os_%.o: CXXFLAGS += -fno-lto -fssystem_%.o: CXXFLAGS += -fno-lto -fssrv_%.o: CXXFLAGS += -fno-lto -fs_%.o: CXXFLAGS += -fno-lto +# I do not remember why these had fno-lto, but it appears to +# work without no-lto (2023/03/09), so I am disabling these. I may regret this later. +#os_%.o: CXXFLAGS += -fno-lto +#fssystem_%.o: CXXFLAGS += -fno-lto +#fssrv_%.o: CXXFLAGS += -fno-lto +#fs_%.o: CXXFLAGS += -fno-lto endif #---------------------------------------------------------------------------------