From e51e11a71cdc4552467b02d7153a430ac43e6584 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 29 Oct 2024 19:30:30 -0700 Subject: [PATCH] libstrat: re-nolto files when compiling for windows-audit --- libraries/libstratosphere/libstratosphere.mk | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libraries/libstratosphere/libstratosphere.mk b/libraries/libstratosphere/libstratosphere.mk index b10f27f13..faec4fdb3 100644 --- a/libraries/libstratosphere/libstratosphere.mk +++ b/libraries/libstratosphere/libstratosphere.mk @@ -154,12 +154,14 @@ 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) -# 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 +# Audit builds fail when these have lto disabled. +# Noting 10/29/24: +# In member function '__ct ': +# internal compiler error: in binds_to_current_def_p, at symtab.cc:2589 +os_%.o: CXXFLAGS += -fno-lto +fssystem_%.o: CXXFLAGS += -fno-lto +fssrv_%.o: CXXFLAGS += -fno-lto +fs_%.o: CXXFLAGS += -fno-lto endif #---------------------------------------------------------------------------------