mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-09 13:41:43 +00:00
kern: enable lto for global instants (saves about a page in deduplicated code)
This commit is contained in:
parent
8a661cee6e
commit
fd187f952e
2 changed files with 3 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue