1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-17 17:36:44 +00:00

kern: enable lto for global instants (saves about a page in deduplicated code)

This commit is contained in:
Michael Scire 2021-10-24 17:06:43 -07:00
parent 8a661cee6e
commit fd187f952e
2 changed files with 3 additions and 1 deletions

View file

@ -108,7 +108,8 @@ namespace ams::kern {
struct DummyKAutoObjectWithListComparator {
static NOINLINE int Compare(KAutoObjectWithList &lhs, KAutoObjectWithList &rhs) {
AMS_ASSUME(false);
MESOSPHERE_UNUSED(lhs, rhs);
MESOSPHERE_PANIC("DummyKAutoObjectWithListComparator invoked");
}
};

View file

@ -117,6 +117,7 @@ $(OFILES) : $(ATMOSPHERE_LIBRARIES_DIR)/libmesosphere/$(ATMOSPHERE_LIBRARY_DIR)/
$(OFILES_SRC) : $(HFILES_BIN)
kern_libc_generic.o: CFLAGS += -fno-builtin
kern_kernel_instantiations.o: CXXFLAGS += -flto
#---------------------------------------------------------------------------------
# you need a rule like this for each extension you use as binary data