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

@@ -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